Skip to content

Commit

Permalink
fix __annotations__ key not found (#2391)
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Liu <austin362667@gmail.com>
  • Loading branch information
austin362667 committed May 7, 2024
1 parent 5290171 commit 4dd4d22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flytekit/types/structured/structured_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ def extract_cols_and_format(
if hasattr(aa, "__annotations__"):
# handle dataclass argument
d = collections.OrderedDict()
dm = vars(aa)
d.update(dm["__annotations__"])
d.update(aa.__annotations__)
ordered_dict_cols = d
elif isinstance(aa, dict):
d = collections.OrderedDict()
Expand Down

0 comments on commit 4dd4d22

Please sign in to comment.