Skip to content

Commit 500cecc

Browse files
committed
No pydantic v1 in 3.14
1 parent 0217fe9 commit 500cecc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_to_tap_class.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
except ModuleNotFoundError:
2121
_IS_PYDANTIC_V1 = None
2222
else:
23-
_IS_PYDANTIC_V1 = pydantic.VERSION.startswith("1.")
23+
# Pydantic v1 is incompatible with Python 3.14+
24+
_IS_PYDANTIC_V1 = pydantic.VERSION.startswith("1.") and sys.version_info < (3, 14)
2425

2526

2627
# To properly test the help message, we need to know how argparse formats it. It changed from 3.10 -> 3.13

0 commit comments

Comments
 (0)