Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Make detection of TypeVar defaults robust to the CPython PEP-696 implementation

#9426Merged
Comparing
AlexWaygood:tvar-default-fix
(
862ebe7
) with
main
(
7061f36
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
13
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py::test_efficiency_with_highly_nested_examples
CodSpeed Performance Gauge
0%
957 µs
953.8 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py::test_fastapi_startup_perf
CodSpeed Performance Gauge
0%
37.4 ms
37.4 ms
test_construct_schema
tests/benchmarks/test_schema_build.py::test_construct_schema
CodSpeed Performance Gauge
0%
5 ms
5 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py::test_north_star_dump_python
CodSpeed Performance Gauge
0%
17.1 ms
17.1 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py::test_fastapi_startup_perf
CodSpeed Performance Gauge
0%
312.6 ms
312.6 ms
test_schema_build
tests/benchmarks/test_discriminated_unions.py::test_schema_build
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py::test_north_star_validate_json
CodSpeed Performance Gauge
0%
52.8 ms
52.9 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py::test_north_star_json_loads
CodSpeed Performance Gauge
0%
22.2 ms
22.2 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py::test_north_star_dump_json
CodSpeed Performance Gauge
0%
35 ms
35 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_json_strict
CodSpeed Performance Gauge
0%
52.6 ms
52.6 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py::test_north_star_validate_python
CodSpeed Performance Gauge
0%
43.7 ms
43.7 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_python_strict
CodSpeed Performance Gauge
0%
28.8 ms
28.8 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py::test_north_star_json_dumps
CodSpeed Performance Gauge
-3%
21.9 ms
22.7 ms

Commits

Click on a commit to change the comparison range
Base
main
7061f36
0%
Make detection of TypeVar defaults robust to the CPython PEP-696 implementation
862ebe7
1 year ago
by AlexWaygood
© 2025 CodSpeed Technology
Home Terms Privacy Docs