my.instapaper: add stat; add mypy checks on CI

This commit is contained in:
Dima Gerasimov 2020-09-29 19:18:10 +01:00 committed by karlicoss
parent 3404b3fcf1
commit dc642b5a6d
3 changed files with 17 additions and 4 deletions

View file

@ -6,9 +6,8 @@ REQUIRES = [
]
from dataclasses import dataclass
from typing import Optional
from .core import Paths, PathIsh
from .core import Paths
from my.config import instapaper as user_config
@ -54,6 +53,12 @@ def pages() -> Iterable[Page]:
return _dal().pages()
def stats():
from .core import stat
return stat(pages)
### misc
# TODO dunno, move this to private?
def is_todo(hl: Highlight) -> bool:
note = hl.note or ''