Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Add note in documentation regarding type variable bounds and constraints not being validated during model parametrization

#11326Merged
Comparing
11296
(
6cfc283
) with
main
(
14d14b0
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
45
New
0
Dropped
0
Ignored
2

Benchmarks

Passed

test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py::test_nested_model_validation[__init__]
CodSpeed Performance Gauge
+1%
51.9 µs
51.6 µs
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_simple_model_schema_generation
CodSpeed Performance Gauge
0%
746.6 µs
744 µs
test_simple_model_serialization
tests/benchmarks/test_model_serialization.py::test_simple_model_serialization
CodSpeed Performance Gauge
0%
31.2 µs
31.1 µs
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_list_of_models_validation[model_validate]
CodSpeed Performance Gauge
0%
79.3 µs
79.1 µs
test_import_basemodel
tests/benchmarks/test_imports.py::test_import_basemodel
CodSpeed Performance Gauge
0%
25.7 µs
25.6 µs
test_deeply_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_deeply_nested_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_nested_model_validation[model_validate]
CodSpeed Performance Gauge
0%
49 µs
48.9 µs
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py::test_complex_model_validation[__init__]
CodSpeed Performance Gauge
0%
49.3 µs
49.3 µs
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py::test_simple_model_validation[__init__]
CodSpeed Performance Gauge
0%
36.7 µs
36.6 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py::test_fastapi_startup_perf
CodSpeed Performance Gauge
0%
200.1 ms
199.9 ms
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py::test_simple_model_schema_lots_of_fields_generation
CodSpeed Performance Gauge
0%
28.5 ms
28.5 ms
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py::test_lots_of_models_with_lots_of_fields
CodSpeed Performance Gauge
0%
2.7 s
2.7 s
test_north_star_json_loads
tests/benchmarks/test_north_star.py::test_north_star_json_loads
CodSpeed Performance Gauge
0%
19.8 ms
19.7 ms
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_complex_model_schema_generation
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
test_getattr
tests/benchmarks/test_attribute_access.py::test_getattr
CodSpeed Performance Gauge
0%
54.4 µs
54.4 µs
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py::test_efficiency_with_highly_nested_examples
CodSpeed Performance Gauge
0%
717 µs
716.8 µs
test_north_star_json_dumps
tests/benchmarks/test_north_star.py::test_north_star_json_dumps
CodSpeed Performance Gauge
0%
23.1 ms
23.1 ms
test_import_field
tests/benchmarks/test_imports.py::test_import_field
CodSpeed Performance Gauge
0%
25.4 µs
25.4 µs
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_simple_model_validation[model_validate]
CodSpeed Performance Gauge
0%
38.3 µs
38.3 µs
test_schema_build
tests/benchmarks/test_discriminated_unions.py::test_schema_build
CodSpeed Performance Gauge
0%
2.9 ms
2.9 ms
test_model_json_serialization
tests/benchmarks/test_model_serialization.py::test_model_json_serialization
CodSpeed Performance Gauge
0%
60.8 µs
60.9 µs
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py::test_construct_dataclass_schema
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py::test_list_of_models_validation[__init__]
CodSpeed Performance Gauge
0%
82.2 µs
82.2 µs
test_generic_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_generic_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
896.9 µs
897.1 µs
test_list_of_models_serialization
tests/benchmarks/test_model_serialization.py::test_list_of_models_serialization
CodSpeed Performance Gauge
0%
53.2 µs
53.2 µs
test_nested_recursive_generic_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_nested_recursive_generic_model_schema_generation
CodSpeed Performance Gauge
0%
1.7 ms
1.7 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_python_strict
CodSpeed Performance Gauge
0%
31.3 ms
31.4 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_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
1 ms
1 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py::test_north_star_validate_python
CodSpeed Performance Gauge
0%
40.8 ms
40.8 ms
test_tagged_union_with_callable_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_tagged_union_with_callable_discriminator_schema_generation
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
test_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_nested_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
test_setattr
tests/benchmarks/test_attribute_access.py::test_setattr
CodSpeed Performance Gauge
0%
86.1 µs
86.2 µs
test_north_star_dump_json
tests/benchmarks/test_north_star.py::test_north_star_dump_json
CodSpeed Performance Gauge
0%
29.4 ms
29.5 ms
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_simple_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
773.9 µs
775.1 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py::test_fastapi_startup_perf
CodSpeed Performance Gauge
0%
26.2 ms
26.2 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py::test_north_star_validate_json
CodSpeed Performance Gauge
0%
49.4 ms
49.5 ms
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_nested_model_schema_generation
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_json_strict
CodSpeed Performance Gauge
0%
49.2 ms
49.3 ms
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py::test_complex_model_serialization
CodSpeed Performance Gauge
0%
56.2 µs
56.3 µs
test_isinstance_basemodel
tests/benchmarks/test_isinstance.py::test_isinstance_basemodel
CodSpeed Performance Gauge
0%
26.8 ms
26.9 ms
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_tagged_union_with_str_discriminator_schema_generation
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
test_recursive_discriminated_union_with_base_model
tests/benchmarks/test_model_schema_generation_recursive.py::test_recursive_discriminated_union_with_base_model
CodSpeed Performance Gauge
0%
1.7 ms
1.7 ms
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_complex_model_validation[model_validate]
CodSpeed Performance Gauge
-1%
49.7 µs
50 µs
test_model_validators_serializers
tests/benchmarks/test_model_schema_generation.py::test_model_validators_serializers
CodSpeed Performance Gauge
-3%
906.8 µs
932.6 µs

Ignored

test_field_validators_serializersIgnored
tests/benchmarks/test_model_schema_generation.py::test_field_validators_serializers
CodSpeed Performance Gauge
-14%
1.8 ms
2.1 ms
test_nested_model_serializationIgnored
tests/benchmarks/test_model_serialization.py::test_nested_model_serialization
CodSpeed Performance Gauge
0%
39.6 µs
39.6 µs

Commits

Click on a commit to change the comparison range
Base
main
14d14b0
0%
Add note in documentation regarding type variable bounds and constraints not being validated during model parametrization
6cfc283
7 months ago
by Viicos
© 2025 CodSpeed Technology
Home Terms Privacy Docs