Skip to content

Commit 0c4e5e3

Browse files
committed
Appease mypy
1 parent 11b65bf commit 0c4e5e3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ofxtools/models/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ def _superdict(cls) -> Mapping[str, Any]:
403403
.. _collections.ChainMap: https://docs.python.org/3/library/collections.html#collections.ChainMap
404404
.. _inheritance order: https://www.python.org/download/releases/2.3/mro/
405405
"""
406-
return ChainMap(*[base.__dict__ for base in cls.mro()])
406+
# mypy doesn't seem to understand "star" arg-unpacking syntax used here
407+
return ChainMap(*[base.__dict__ for base in cls.mro()]) # type: ignore
407408

408409
@classmethod
409410
def _filter_attrs(cls, predicate: Callable) -> Mapping[str, Any]:

ofxtools/scripts/ofxget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ def _scan_profile(
11581158
org: Optional[str],
11591159
fid: Optional[str],
11601160
useragent: Optional[str],
1161-
gen_newfileuid: Optional[bool],
1161+
gen_newfileuid: bool,
11621162
max_workers: Optional[int] = None,
11631163
timeout: Optional[float] = None,
11641164
) -> ScanResults:
@@ -1220,7 +1220,7 @@ def _scan_profile(
12201220

12211221
def _queue_scans(
12221222
client: OFXClient,
1223-
gen_newfileuid: Optional[bool],
1223+
gen_newfileuid: bool,
12241224
max_workers: Optional[int],
12251225
timeout: Optional[float],
12261226
) -> Mapping[concurrent.futures.Future, ScanMetadata]:

0 commit comments

Comments
 (0)