strawberry-graphql
strawberry
BlogDocsChangelog

fix(pydantic): Remove pydantic.v1 imports for Python 3.14 compatibility

#4072Merged
Comparing
fix/pydantic-v1-python-314-compat
(
fc7be36
) with
main
(
23f8c50
)
CodSpeed Performance Gauge
0%
Untouched
28
Ignored
1

Benchmarks

Passed

test_interface_performance[256]
tests/benchmarks/test_execute.py
CodSpeed Performance Gauge
+1%
62.3 ms62 ms
test_interface_performance[16]
tests/benchmarks/test_execute.py
CodSpeed Performance Gauge
0%
59.9 ms59.7 ms
test_execute[with_resolveextension-items_1000]
tests/benchmarks/test_execute_with_extensions.py
CodSpeed Performance Gauge
0%
185.9 ms185.4 ms
test_execute_generic_input
tests/benchmarks/test_generic_input.py
CodSpeed Performance Gauge
0%
499.7 ms498.7 ms
test_execute[with_resolveextension-items_10000]
tests/benchmarks/test_execute_with_extensions.py
CodSpeed Performance Gauge
0%
1.9 s1.9 s
test_execute[with_simpleextension-items_10000]
tests/benchmarks/test_execute_with_extensions.py
CodSpeed Performance Gauge
0%
635.4 ms634.6 ms
test_interface_performance[4096]
tests/benchmarks/test_execute.py
CodSpeed Performance Gauge
0%
68.7 ms68.6 ms
test_execute_with_1000_items
tests/benchmarks/test_execute_sync.py
CodSpeed Performance Gauge
0%
67.3 ms67.3 ms
test_execute_with_many_fields
tests/benchmarks/test_execute_sync.py
CodSpeed Performance Gauge
0%
37.6 ms37.6 ms
test_execute
tests/benchmarks/test_execute.py
CodSpeed Performance Gauge
0%
534.2 ms534 ms
test_convert_argument_large_list[16384]
tests/benchmarks/test_arguments.py
CodSpeed Performance Gauge
0%
206.5 µs206.4 µs
test_stadium[seats_per_row_250]
tests/benchmarks/test_stadium.py
CodSpeed Performance Gauge
0%
6.7 s6.7 s
test_subscription_long_run[20000]
tests/benchmarks/test_subscriptions.py
CodSpeed Performance Gauge
0%
3.5 s3.5 s
test_convert_argument_large_list[4194304]
tests/benchmarks/test_arguments.py
CodSpeed Performance Gauge
0%
37.5 ms37.5 ms
test_convert_argument_large_list[1048576]
tests/benchmarks/test_arguments.py
CodSpeed Performance Gauge
0%
9.4 ms9.4 ms
test_convert_argument_large_list[262144]
tests/benchmarks/test_arguments.py
CodSpeed Performance Gauge
0%
2.4 ms2.4 ms
test_execute_complex_schema[50]
tests/benchmarks/test_complex_schema.py
CodSpeed Performance Gauge
0%
4 s4 s
test_convert_argument_large_list[65536]
tests/benchmarks/test_arguments.py
CodSpeed Performance Gauge
0%
633.7 µs633.9 µs
test_stadium[seats_per_row_500]
tests/benchmarks/test_stadium.py
CodSpeed Performance Gauge
0%
13.3 s13.3 s
test_subscription_long_run[1000]
tests/benchmarks/test_subscriptions.py
CodSpeed Performance Gauge
0%
180.2 ms180.3 ms
test_execute[with_no_extensions-items_10000]
tests/benchmarks/test_execute_with_extensions.py
CodSpeed Performance Gauge
0%
631.3 ms631.8 ms
test_execute[with_no_extensions-items_1000]
tests/benchmarks/test_execute_with_extensions.py
CodSpeed Performance Gauge
0%
67.7 ms67.8 ms
test_interface_performance[1]
tests/benchmarks/test_execute.py
CodSpeed Performance Gauge
0%
59.7 ms59.7 ms
test_execute_with_many_fields_and_directives
tests/benchmarks/test_execute_sync.py
CodSpeed Performance Gauge
0%
43.4 ms43.4 ms
test_execute[with_simpleextension-items_1000]
tests/benchmarks/test_execute_with_extensions.py
CodSpeed Performance Gauge
0%
68 ms68.1 ms
test_execute_with_100_items
tests/benchmarks/test_execute_sync.py
CodSpeed Performance Gauge
-1%
11 ms11 ms
test_execute_with_10_items
tests/benchmarks/test_execute_sync.py
CodSpeed Performance Gauge
-2%
5.4 ms5.5 ms
test_subscription
tests/benchmarks/test_subscriptions.py
CodSpeed Performance Gauge
-2%
216.9 ms222.1 ms

Ignored

test_execute_basic
tests/benchmarks/test_execute_sync.py
Ignored
CodSpeed Performance Gauge
-6%
2.3 ms2.4 ms

Commits

Click on a commit to change the comparison range
Base
main
23f8c50
-0.14%
fix(pydantic): Remove pydantic.v1 imports for Python 3.14 compatibility When using Pydantic V2 on Python 3.14+, the compat module was importing from pydantic.v1 which triggers a warning: "Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater." Changes: - Import lenient_issubclass and smart_deepcopy from pydantic._internal._utils instead of pydantic.v1.utils (works on all Python versions with Pydantic V2) - On Python 3.14+, define is_new_type locally instead of importing from pydantic.v1.typing Fixes #4043
fc7be36
2 days ago
by patrick91
© 2025 CodSpeed Technology
Home Terms Privacy Docs