Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Sep 9, 2022
1 parent ece1a96 commit d378c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytekit/core/type_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def _fix_val_int(self, t: typing.Type, val: typing.Any) -> typing.Any:
# Handle optional type. e.g. Optional[int], Optional[dataclass]
# Marshmallow doesn't support union type, so the type here is always an optional type.
# https://github.com/marshmallow-code/marshmallow/issues/1191#issuecomment-480831796
# Note: Typing.Union[None, int] is also an optional type, but Marshmallow does not support it.
# Note: Union[None, int] is also an optional type, but Marshmallow does not support it.
return self._fix_val_int(get_args(t)[0], val)

if dataclasses.is_dataclass(t):
Expand Down

0 comments on commit d378c7f

Please sign in to comment.