general: update mypy config, seems that logs of type: ignore aren't necessary anymore
This commit is contained in:
parent
8fc4951c57
commit
fe2c99f037
52 changed files with 142 additions and 105 deletions
|
@ -36,7 +36,7 @@ _rgx = re.compile(orgparse.date.gene_timestamp_regex(brtype='inactive'), re.VERB
|
|||
def _created(n: orgparse.OrgNode) -> Tuple[Optional[datetime], str]:
|
||||
heading = n.heading
|
||||
# meh.. support in orgparse?
|
||||
pp = {} if n.is_root() else n.properties # type: ignore
|
||||
pp = {} if n.is_root() else n.properties
|
||||
createds = pp.get('CREATED', None)
|
||||
if createds is None:
|
||||
# try to guess from heading
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue