Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

Fix `ValueError` on year zero

#1583Merged
Comparing
dh/date-ranges
(
36b1ffd
) with
main
(
39435c2
)
CodSpeed Performance Gauge
0%
Untouched
157

Benchmarks

157 total
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
27.5 µs26.9 µs
test_core_root_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
36.2 µs35.5 µs
test_definition_model_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
1.1 ms1.1 ms
test_date_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
52.7 µs51.7 µs
test_uuid
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
23.8 µs23.6 µs
test_nested_schema_inlined
tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
+1%
15.8 ms15.6 ms
test_isinstance_string_lax_true
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.1 µs14 µs
test_isinstance_string_lax_false
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.7 µs15.6 µs
test_tagged_union_int_keys_python
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
21 µs20.9 µs
test_isinstance_string_strict_true
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.2 µs14.1 µs
test_dont_raise_error_no_info
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
18.2 µs18 µs
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
32.7 µs32.5 µs
test_isinstance_string_strict_false
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.5 µs15.4 µs
test_model_core_json
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
0%
31.5 µs31.4 µs
test_validate_literal[python-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
15 µs15 µs
test_datetime
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
27.7 µs27.6 µs
test_dataclass_serialization_python
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
21.8 µs21.7 µs
test_dict_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_complete_core_root_json
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
0%
448.2 µs446.5 µs
test_nested_schema_using_defs
tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
0%
14.5 ms14.5 ms
test_raise_error_custom
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
39.3 µs39.2 µs
test_validate_literal[json-few_mixed]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
19.1 µs19 µs
test_core_string_strict_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
26.6 µs26.5 µs
test_core_string_lax_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
26.8 µs26.7 µs
test_isinstance_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
18.9 µs18.9 µs

Commits

Click on a commit to change the comparison range
Base
main
39435c2
-0.16%
fix `ValueError` on year zero
36b1ffd
1 year ago
by davidhewitt
© 2026 CodSpeed Technology
Home Terms Privacy Docs