Skip to content

Commit

Permalink
fix: minor type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
HLasse committed Dec 10, 2022
1 parent c1a5aeb commit 891f652
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/timeseriesflattener/feature_spec_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from frozendict import frozendict # type: ignore
from pydantic import BaseModel as PydanticBaseModel
from pydantic import Extra, Field
from pydantic.fields import FieldInfo

from timeseriesflattener.resolve_multiple_functions import resolve_multiple_fns
from timeseriesflattener.utils import data_loaders, split_dfs
Expand Down Expand Up @@ -113,7 +114,7 @@ def generate_docstring_from_attributes(cls: BaseModel) -> str:
# extract the pretty printed type
type_ = [arg[1] for arg in field.__repr_args__() if arg[0] == "type"][0]
doc += " "
field_info: pd.fields.FieldInfo = field.field_info
field_info: FieldInfo = field.field_info
doc += f"{name} ({type_}):\n "
default_value = field.default
default_str = (
Expand Down

0 comments on commit 891f652

Please sign in to comment.