diff --git a/.tool-versions b/.tool-versions index 7139565..fe62b5c 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ poetry 2.1.4 -python 3.13.5 3.12.11 3.11.13 3.10.18 3.9.23 +python 3.14.2 3.13.5 3.12.11 3.11.13 3.10.18 3.9.23 diff --git a/nhs_aws_helpers/common.py b/nhs_aws_helpers/common.py index aff7d4b..4fb20d3 100644 --- a/nhs_aws_helpers/common.py +++ b/nhs_aws_helpers/common.py @@ -42,7 +42,7 @@ def optional_origin_type(original_type: type) -> type: """ if the target type is Optional or a Union[xxx, None] this will return the wrapped type """ - if original_type.__class__.__name__ not in ("_UnionGenericAlias", "UnionType", "_GenericAlias"): + if original_type.__class__.__name__ not in ("_UnionGenericAlias", "UnionType", "_GenericAlias", "Union"): return original_type args = typing.get_args(original_type) if len(args) != 2: diff --git a/pyproject.toml b/pyproject.toml index a154d64..9b9a9d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -139,7 +139,7 @@ check_untyped_defs = true [tool.tox] legacy_tox_ini = """ [tox] -envlist = py39,py310,py311,py312,py313 +envlist = py39,py310,py311,py312,py313,py314 [gh-actions] python = @@ -148,6 +148,7 @@ python = 3.11: py311 3.12: py312 3.13: py313 + 3.14: py314 [testenv] deps =