Skip to content

Commit 59105a7

Browse files
Merge pull request #195 from NHSDigital/mesh-2769-support-python-314
mesh-2796: support python 3.14
2 parents b88b51f + a1dc58a commit 59105a7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
poetry 2.1.4
2-
python 3.13.5 3.12.11 3.11.13 3.10.18 3.9.23
2+
python 3.14.2 3.13.5 3.12.11 3.11.13 3.10.18 3.9.23

nhs_aws_helpers/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def optional_origin_type(original_type: type) -> type:
4242
"""
4343
if the target type is Optional or a Union[xxx, None] this will return the wrapped type
4444
"""
45-
if original_type.__class__.__name__ not in ("_UnionGenericAlias", "UnionType", "_GenericAlias"):
45+
if original_type.__class__.__name__ not in ("_UnionGenericAlias", "UnionType", "_GenericAlias", "Union"):
4646
return original_type
4747
args = typing.get_args(original_type)
4848
if len(args) != 2:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ check_untyped_defs = true
139139
[tool.tox]
140140
legacy_tox_ini = """
141141
[tox]
142-
envlist = py39,py310,py311,py312,py313
142+
envlist = py39,py310,py311,py312,py313,py314
143143
144144
[gh-actions]
145145
python =
@@ -148,6 +148,7 @@ python =
148148
3.11: py311
149149
3.12: py312
150150
3.13: py313
151+
3.14: py314
151152
152153
[testenv]
153154
deps =

0 commit comments

Comments
 (0)