Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

Add support for `typing.Never`

#1579Closed
Comparing
changhc:9731-never
(
3b439fa
) with
main
(
52e9a53
)
CodSpeed Performance Gauge
0%
Untouched
157

Benchmarks

157 total
test_many_models_core_dict
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+7%
993 µs926.8 µs
test_list_of_strs_json_cached
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
312.6 µs299.5 µs
test_list_of_strs_json_uncached
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
399.5 µs384.7 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
+3%
106.2 µs102.7 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
+3%
177.9 µs173 µs
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
27.5 µs26.7 µs
test_list_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
752.5 µs741 µs
test_tagged_union_int_keys_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
24.8 µs24.4 µs
test_core_future
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+1%
26.2 µs25.8 µs
test_core_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+1%
18.7 µs18.4 µs
test_enum_int_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.9 µs14.7 µs
test_uuid_from_uuid_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
15 µs14.8 µs
test_arguments
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
24.9 µs24.6 µs
test_tagged_union_int_keys_python
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
21 µs20.8 µs
test_set_of_ints_core_json_duplicates
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
423.2 µs418.7 µs
test_validate_literal[python-few_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.8 µs14.6 µs
test_definition_model_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
1.1 ms1.1 ms
test_enum_str_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.2 µs15.1 µs
test_validate_literal[json-few_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16 µs15.8 µs
test_dataclass_to_json
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
40.3 µs39.9 µs
test_strict_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
16.7 µs16.5 µs
test_chain_function
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
24.8 µs24.5 µs
test_dont_raise_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
20.5 µs20.4 µs
test_int_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
40.6 µs40.3 µs
test_dataclass_serialization_python
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
21.8 µs21.6 µs

Commits

Click on a commit to change the comparison range
Base
main
52e9a53
-0.3%
implement never
9d7475c
1 year ago
by changhc
+0.09%
fix tests
eef8902
1 year ago
by changhc
-0.08%
fix tests
9f71bfb
1 year ago
by changhc
+0.14%
fix tests
1194798
1 year ago
by changhc
-0.11%
fix tests
4ac8b38
1 year ago
by changhc
+0.02%
update error message
a3caf80
1 year ago
by changhc
+0.11%
update test
185ef6d
1 year ago
by changhc
-0.07%
update test
a896b4c
1 year ago
by changhc
+0.13%
move error message
3a55559
1 year ago
by changhc
-0.46%
fix tests
47c3036
1 year ago
by changhc
+0.07%
fix tests
26df7ba
1 year ago
by changhc
+0.7%
fix
d339db7
11 months ago
by changhc
+0.01%
fix
3b439fa
11 months ago
by changhc
© 2026 CodSpeed Technology
Home Terms Privacy Docs