HomeSoftware Heritage

storage.py: ignore typing of optional get_journal_writer import
d8fa30bacfccUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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
zackPushed on Oct 1 2019, 8:25 AM
Parents
R65:976aab39d118: mypy: ignore swh.journal to work-around dependency loop
Branches
Unknown
Tags
Unknown

Event Timeline