diff --git a/flytekit/core/type_engine.py b/flytekit/core/type_engine.py index edb7bea65f..43c11065ba 100644 --- a/flytekit/core/type_engine.py +++ b/flytekit/core/type_engine.py @@ -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):