diff --git a/pyproject.toml b/pyproject.toml index df457ac3ad..5678d342b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ dependencies = [ "s3fs>=2023.3.0,!=2024.3.1", "statsd>=3.0.0,<4.0.0", "typing_extensions", + "typing-inspect", "urllib3>=1.22,<2.0.0", ] classifiers = [ diff --git a/tests/flytekit/unit/core/test_interface.py b/tests/flytekit/unit/core/test_interface.py index 5ec53bc1d8..fad5c5c049 100644 --- a/tests/flytekit/unit/core/test_interface.py +++ b/tests/flytekit/unit/core/test_interface.py @@ -1,4 +1,5 @@ import os +import sys import typing from typing import Dict, List @@ -155,7 +156,7 @@ def t1() -> FlyteFile[typing.TypeVar("svg")]: return_type = extract_return_annotation(typing.get_type_hints(t1).get("return", None)) assert return_type["o0"].extension() == FlyteFile[typing.TypeVar("svg")].extension() - +@pytest.mark.skipif(sys.version_info < (3, 10), reason="PEP604 requires >=3.10.") def test_parameters_and_defaults(): ctx = context_manager.FlyteContext.current_context()