HomeSoftware Heritage

storage.py: ignore typing of optional get_journal_writer import

Description

storage.py: ignore typing of optional get_journal_writer import

the real type is Optional[Callable[..., Any]], but redefinitions of imported
stuff in try..except is currently not supported by mypy, see
https://github.com/python/mypy/issues/1153

Details

Provenance
zackAuthored on Sep 28 2019, 12:42 PM
vlorentzPushed on Oct 30 2019, 5:21 PM
Differential Revision
D2023: typing: minimal changes to make a no-op mypy run pass
Parents
rDSTOC976aab39d118: mypy: ignore swh.journal to work-around dependency loop
Branches
Unknown
Tags
Unknown