CI: add mypy checks for my.reddit, my.pocket and my.github.ghexport

This commit is contained in:
Dima Gerasimov 2020-09-30 22:24:44 +01:00 committed by karlicoss
parent 0682919449
commit 1c20eb27aa
3 changed files with 20 additions and 4 deletions

View file

@ -209,8 +209,9 @@ def events(*args, **kwargs) -> List[Event]:
inp = inputs()
# 2.2s for 300 files without cachew
# 0.2s for 300 files with cachew
evit = _get_events(inp, *args, **kwargs)
return list(sorted(evit, key=lambda e: e.cmp_key))
evit = _get_events(inp, *args, **kwargs) # type: ignore[call-arg]
# todo mypy is confused here and thinks it's iterable of Path? perhaps something to do with mcachew?
return list(sorted(evit, key=lambda e: e.cmp_key)) # type: ignore[attr-defined,arg-type]
def stats():