Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Fix RootModel constructor typing in the mypy plugin

#13091Closed
Comparing
lawrence3699:fix/rootmodel-mypy-constructor
(
f2fc3fb
) with
main
(
a6bf50b
)
CodSpeed Performance Gauge
0%
Untouched
215
Ignored
2

Benchmarks

217 total
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+4%
644.5 µs619.8 µs
test_field_function_validator
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
343.3 µs331 µs
test_arguments
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
24.4 µs23.6 µs
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+3%
1.1 ms1 ms
test_dataclass_to_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+3%
40.8 µs39.6 µs
test_json_any_list_int
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
201.6 µs198.3 µs
test_json_direct_list_str
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
184.9 µs182.1 µs
test_core_json_fs
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
+1%
111.2 µs109.7 µs
test_date_from_date
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
15.7 µs15.5 µs
test_set_of_ints_core_json_duplicates
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
438.5 µs433.3 µs
test_json_any_list_str
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
239.8 µs237 µs
test_complete_core_json
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
413.5 µs408.8 µs
test_validate_literal[json-many_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
18 µs17.8 µs
test_validate_literal[json-many_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
18.2 µs18 µs
test_smart_union_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
17.7 µs17.5 µs
test_strict_union_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
18.1 µs18 µs
test_complete_core_root_json
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
416.9 µs413 µs
test_validate_literal[json-many_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
17.5 µs17.4 µs
test_chain_nested_functions
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
29.8 µs29.6 µs
test_core_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
27.6 µs27.4 µs
test_date_format_function
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
53.7 µs53.3 µs
test_isinstance_string_strict_true
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.5 µs15.4 µs
test_core_future
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
15.9 µs15.8 µs
test_json_direct_list_int
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
149.7 µs148.7 µs
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
28.4 ms28.2 ms

Commits

Click on a commit to change the comparison range
Base
main
a6bf50b
+0.01%
Fix RootModel mypy constructor fallback
f2fc3fb
24 days ago
by lawrence3699
© 2026 CodSpeed Technology
Home Terms Privacy Docs