Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion nhs_aws_helpers/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -148,6 +148,7 @@ python =
3.11: py311
3.12: py312
3.13: py313
3.14: py314

[testenv]
deps =
Expand Down
Loading