emfit: propagate errors properly, expose dataframe
This commit is contained in:
parent
78489157a1
commit
d9bbf7cbf0
3 changed files with 97 additions and 39 deletions
9
my/core/types.py
Normal file
9
my/core/types.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue