emfit: propagate errors properly, expose dataframe

This commit is contained in:
Dima Gerasimov 2020-08-20 23:25:14 +01:00 committed by karlicoss
parent 78489157a1
commit d9bbf7cbf0
3 changed files with 97 additions and 39 deletions

9
my/core/types.py Normal file
View file

@ -0,0 +1,9 @@
import typing
if typing.TYPE_CHECKING:
from typing import Any
# todo would be nice to use some real stubs..
DataFrameT = Any
else:
import pandas # type: ignore
DataFrameT = pandas.DataFrame