my.rescuetime: use rescuexport directly, add error handling & dataframe

This commit is contained in:
Dima Gerasimov 2020-09-18 23:42:05 +01:00 committed by karlicoss
parent e34c04ebc8
commit 28fcc1d9b6
3 changed files with 27 additions and 16 deletions

View file

@ -28,7 +28,7 @@ def echain(ex: E, cause: Exception) -> E:
def split_errors(l: Iterable[ResT[T, E]], ET: Type[E]) -> Tuple[Iterable[T], Iterable[E]]:
# TODO would be nice to have ET=Exception default?
# TODO would be nice to have ET=Exception default? but it causes some mypy complaints?
vit, eit = tee(l)
# TODO ugh, not sure if I can reconcile type checking and runtime and convince mypy that ET and E are the same type?
values: Iterable[T] = (