Skip to content

Commit

Permalink
fix syntax to support python 3.9
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Oct 24, 2024
1 parent 6c5b19f commit 76ae0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytekit/extras/pydantic/decorator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import Any, Callable, TypeVar
from typing import Any, Callable, TypeVar, Union

logger = logging.getLogger(__name__)

Expand All @@ -18,7 +18,7 @@
from typing_extensions import Literal as typing_literal

Check warning on line 18 in flytekit/extras/pydantic/decorator.py

View check run for this annotation

Codecov / codecov/patch

flytekit/extras/pydantic/decorator.py#L18

Added line #L18 was not covered by tests

def model_serializer(

Check warning on line 20 in flytekit/extras/pydantic/decorator.py

View check run for this annotation

Codecov / codecov/patch

flytekit/extras/pydantic/decorator.py#L20

Added line #L20 was not covered by tests
__f: Callable[..., Any] | None = None,
__f: Union[Callable[..., Any], None] = None,
*,
mode: typing_literal["plain", "wrap"] = "plain",
when_used: typing_literal["always", "unless-none", "json", "json-unless-none"] = "always",
Expand Down

0 comments on commit 76ae0ef

Please sign in to comment.