From d378c7ff738371db3163cf6f848ab1ae2ea57f74 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Fri, 9 Sep 2022 22:25:55 +0800 Subject: [PATCH] nit Signed-off-by: Kevin Su --- flytekit/core/type_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):