my.instapaper: add stat; add mypy checks on CI
This commit is contained in:
parent
3404b3fcf1
commit
dc642b5a6d
3 changed files with 17 additions and 4 deletions
|
@ -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 ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue