BlogDocs

`date` string coerced to `datetime` shouldn't infer timezone(#1193)

Merged
Merging
d-to-dt-tz-fix
into
main
N/A
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
0
NEW
146
DROPPED
0
IGNORED
0

Benchmarks

test_build_schema
tests/benchmarks/test_complete_benchmark.py::test_build_schema
N/A
N/A
3.6 ms
test_complete_core_error
tests/benchmarks/test_complete_benchmark.py::test_complete_core_error
N/A
N/A
8.8 ms
test_complete_core_isinstance
tests/benchmarks/test_complete_benchmark.py::test_complete_core_isinstance
N/A
N/A
8.6 ms
test_complete_core_json
tests/benchmarks/test_complete_benchmark.py::test_complete_core_json
N/A
N/A
2.6 ms
test_complete_core_lax
tests/benchmarks/test_complete_benchmark.py::test_complete_core_lax
N/A
N/A
983.4 µs
test_complete_core_strict
tests/benchmarks/test_complete_benchmark.py::test_complete_core_strict
N/A
N/A
938.8 µs
test_core_future
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime::test_core_future
N/A
N/A
47 µs
test_core_future_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime::test_core_future_str
N/A
N/A
31.6 µs
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime::test_core_python
N/A
N/A
50.1 µs
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime::test_core_raw
N/A
N/A
19.7 µs
test_core_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime::test_core_str
N/A
N/A
38.8 µs
test_model_core_json
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime::test_model_core_json
N/A
N/A
62.5 µs
test_core_future
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX::test_core_future
N/A
N/A
37.4 µs
test_core_future_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX::test_core_future_str
N/A
N/A
26.4 µs
test_date_from_date
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX::test_date_from_date
N/A
N/A
19.6 µs
test_date_from_datetime
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX::test_date_from_datetime
N/A
N/A
38.5 µs
test_date_from_datetime_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX::test_date_from_datetime_str
N/A
N/A
29.5 µs
test_date_from_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX::test_date_from_str
N/A
N/A
26.3 µs
test_decimal_from_string_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal::test_decimal_from_string_core
N/A
N/A
37.4 µs
test_decimal_from_string_limit
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal::test_decimal_from_string_limit
N/A
N/A
26.8 µs
test_decimal_from_string_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal::test_decimal_from_string_pyd
N/A
N/A
55.2 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel::test_core_json_fs
N/A
N/A
556.9 µs
test_core_python_fs
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel::test_core_python_fs
N/A
N/A
242.4 µs
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_core_python
N/A
N/A
48.5 µs
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_core_raw
N/A
N/A
19.6 µs
test_core_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_core_str
N/A
N/A
56.1 µs
test_model_core_json
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_model_core_json
N/A
N/A
83.6 µs
test_uuid_from_string_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_uuid_from_string_core
N/A
N/A
57.4 µs
test_uuid_from_string_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_uuid_from_string_pyd
N/A
N/A
94 µs
test_uuid_from_uuid_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_uuid_from_uuid_core
N/A
N/A
19.6 µs
test_uuid_from_uuid_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID::test_uuid_from_uuid_pyd
N/A
N/A
20.4 µs
test_smart_union_coerce_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion::test_smart_union_coerce_core
N/A
N/A
24.2 µs
test_smart_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion::test_smart_union_core
N/A
N/A
22.1 µs
test_strict_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion::test_strict_union_core
N/A
N/A
23.2 µs
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion::test_strict_union_error_core
N/A
N/A
53.8 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge::test_core_json_fs
N/A
N/A
769.4 µs
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge::test_core_python
N/A
N/A
464.3 µs
test_arguments
tests/benchmarks/test_micro_benchmarks.py::test_arguments
N/A
N/A
42.8 µs
test_bool_core
tests/benchmarks/test_micro_benchmarks.py::test_bool_core
N/A
N/A
47.7 µs
test_bytes_core
tests/benchmarks/test_micro_benchmarks.py::test_bytes_core
N/A
N/A
19.3 µs
test_chain_function
tests/benchmarks/test_micro_benchmarks.py::test_chain_function
N/A
N/A
37.6 µs
test_chain_list
tests/benchmarks/test_micro_benchmarks.py::test_chain_list
N/A
N/A
41.1 µs
test_chain_nested_functions
tests/benchmarks/test_micro_benchmarks.py::test_chain_nested_functions
N/A
N/A
46.3 µs
test_chain_two_functions
tests/benchmarks/test_micro_benchmarks.py::test_chain_two_functions
N/A
N/A
48.6 µs
test_core_root_model
tests/benchmarks/test_micro_benchmarks.py::test_core_root_model
N/A
N/A
92.2 µs
test_core_string_lax
tests/benchmarks/test_micro_benchmarks.py::test_core_string_lax
N/A
N/A
19.4 µs
test_core_string_lax_wrong
tests/benchmarks/test_micro_benchmarks.py::test_core_string_lax_wrong
N/A
N/A
40.6 µs
test_core_string_strict
tests/benchmarks/test_micro_benchmarks.py::test_core_string_strict
N/A
N/A
19.4 µs
test_core_string_strict_wrong
tests/benchmarks/test_micro_benchmarks.py::test_core_string_strict_wrong
N/A
N/A
40.2 µs
test_core_string_strict_wrong_str_e
tests/benchmarks/test_micro_benchmarks.py::test_core_string_strict_wrong_str_e
N/A
N/A
74.6 µs
test_definition_in_tree
tests/benchmarks/test_micro_benchmarks.py::test_definition_in_tree
N/A
N/A
4.2 ms
test_definition_model_core
tests/benchmarks/test_micro_benchmarks.py::test_definition_model_core
N/A
N/A
5.1 ms
test_definition_out_of_tree
tests/benchmarks/test_micro_benchmarks.py::test_definition_out_of_tree
N/A
N/A
5.6 ms
test_dict_of_any_core
tests/benchmarks/test_micro_benchmarks.py::test_dict_of_any_core
N/A
N/A
3.5 ms
test_dict_of_ints_core
tests/benchmarks/test_micro_benchmarks.py::test_dict_of_ints_core
N/A
N/A
5.1 ms
test_dict_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py::test_dict_of_ints_core_json
N/A
N/A
13.2 ms
test_dont_raise_error
tests/benchmarks/test_micro_benchmarks.py::test_dont_raise_error
N/A
N/A
30.3 µs
test_dont_raise_error_no_info
tests/benchmarks/test_micro_benchmarks.py::test_dont_raise_error_no_info
N/A
N/A
27 µs
test_field_function_validator
tests/benchmarks/test_micro_benchmarks.py::test_field_function_validator
N/A
N/A
1.7 ms
test_frozenset_of_ints_core
tests/benchmarks/test_micro_benchmarks.py::test_frozenset_of_ints_core
N/A
N/A
1.1 ms
test_frozenset_of_ints_duplicates_core
tests/benchmarks/test_micro_benchmarks.py::test_frozenset_of_ints_duplicates_core
N/A
N/A
756.4 µs
test_generator_python
tests/benchmarks/test_micro_benchmarks.py::test_generator_python
N/A
N/A
44.7 µs
test_generator_rust
tests/benchmarks/test_micro_benchmarks.py::test_generator_rust
N/A
N/A
33.2 µs
test_int_error
tests/benchmarks/test_micro_benchmarks.py::test_int_error
N/A
N/A
79.3 µs
test_int_range
tests/benchmarks/test_micro_benchmarks.py::test_int_range
N/A
N/A
20.7 µs
test_int_range_json
tests/benchmarks/test_micro_benchmarks.py::test_int_range_json
N/A
N/A
22.2 µs
test_isinstance_json
tests/benchmarks/test_micro_benchmarks.py::test_isinstance_json
N/A
N/A
32.8 µs
test_isinstance_string_lax_false
tests/benchmarks/test_micro_benchmarks.py::test_isinstance_string_lax_false
N/A
N/A
22.1 µs
test_isinstance_string_lax_true
tests/benchmarks/test_micro_benchmarks.py::test_isinstance_string_lax_true
N/A
N/A
19.6 µs
test_isinstance_string_strict_false
tests/benchmarks/test_micro_benchmarks.py::test_isinstance_string_strict_false
N/A
N/A
21.5 µs
test_isinstance_string_strict_true
tests/benchmarks/test_micro_benchmarks.py::test_isinstance_string_strict_true
N/A
N/A
19.6 µs
test_list_of_any_core_py
tests/benchmarks/test_micro_benchmarks.py::test_list_of_any_core_py
N/A
N/A
185.9 µs
test_list_of_dict_models_core
tests/benchmarks/test_micro_benchmarks.py::test_list_of_dict_models_core
N/A
N/A
478.8 µs
test_list_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py::test_list_of_ints_core_json
N/A
N/A
4.9 ms
test_list_of_ints_core_py
tests/benchmarks/test_micro_benchmarks.py::test_list_of_ints_core_py
N/A
N/A
2.3 ms
test_list_of_nullable_core
tests/benchmarks/test_micro_benchmarks.py::test_list_of_nullable_core
N/A
N/A
477.7 µs
test_many_models_core_dict
tests/benchmarks/test_micro_benchmarks.py::test_many_models_core_dict
N/A
N/A
5.4 ms
test_many_models_core_model
tests/benchmarks/test_micro_benchmarks.py::test_many_models_core_model
N/A
N/A
15.8 ms
test_model_instance
tests/benchmarks/test_micro_benchmarks.py::test_model_instance
N/A
N/A
55.8 µs
test_model_instance_abc
tests/benchmarks/test_micro_benchmarks.py::test_model_instance_abc
N/A
N/A
56.4 µs
test_positional_tuple
tests/benchmarks/test_micro_benchmarks.py::test_positional_tuple
N/A
N/A
31.6 µs
test_raise_error_custom
tests/benchmarks/test_micro_benchmarks.py::test_raise_error_custom
N/A
N/A
64.4 µs
test_raise_error_value_error
tests/benchmarks/test_micro_benchmarks.py::test_raise_error_value_error
N/A
N/A
65.4 µs
test_set_of_ints_core
tests/benchmarks/test_micro_benchmarks.py::test_set_of_ints_core
N/A
N/A
3.4 ms
test_set_of_ints_core_duplicates
tests/benchmarks/test_micro_benchmarks.py::test_set_of_ints_core_duplicates
N/A
N/A
1.7 ms
test_set_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py::test_set_of_ints_core_json
N/A
N/A
5.8 ms
test_set_of_ints_core_json_duplicates
tests/benchmarks/test_micro_benchmarks.py::test_set_of_ints_core_json_duplicates
N/A
N/A
3.6 ms
test_set_of_ints_core_length
tests/benchmarks/test_micro_benchmarks.py::test_set_of_ints_core_length
N/A
N/A
3.5 ms
test_small_class_core_dict
tests/benchmarks/test_micro_benchmarks.py::test_small_class_core_dict
N/A
N/A
33.4 µs
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py::test_small_class_core_model
N/A
N/A
52 µs
test_strict_int
tests/benchmarks/test_micro_benchmarks.py::test_strict_int
N/A
N/A
19.4 µs
test_strict_int_fails
tests/benchmarks/test_micro_benchmarks.py::test_strict_int_fails
N/A
N/A
40.3 µs
test_tagged_union_int_keys_json
tests/benchmarks/test_micro_benchmarks.py::test_tagged_union_int_keys_json
N/A
N/A
43.7 µs
test_tagged_union_int_keys_python
tests/benchmarks/test_micro_benchmarks.py::test_tagged_union_int_keys_python
N/A
N/A
34 µs
test_tuple_many_positional
tests/benchmarks/test_micro_benchmarks.py::test_tuple_many_positional
N/A
N/A
33.5 µs
test_tuple_many_variable
tests/benchmarks/test_micro_benchmarks.py::test_tuple_many_variable
N/A
N/A
33.5 µs
test_validate_literal[json-few_ints]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-few_ints]
N/A
N/A
21.9 µs
test_validate_literal[json-few_large_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-few_large_strings]
N/A
N/A
25.1 µs
test_validate_literal[json-few_mixed]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-few_mixed]
N/A
N/A
29.8 µs
test_validate_literal[json-few_small_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-few_small_strings]
N/A
N/A
24.8 µs
test_validate_literal[json-few_str_enum]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-few_str_enum]
N/A
N/A
33.2 µs
test_validate_literal[json-many_ints]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-many_ints]
N/A
N/A
21.8 µs
test_validate_literal[json-many_large_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-many_large_strings]
N/A
N/A
25.2 µs
test_validate_literal[json-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[json-many_small_strings]
N/A
N/A
23.4 µs
test_validate_literal[python-few_ints]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-few_ints]
N/A
N/A
20.5 µs
test_validate_literal[python-few_large_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-few_large_strings]
N/A
N/A
20.6 µs
test_validate_literal[python-few_mixed]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-few_mixed]
N/A
N/A
27.4 µs
test_validate_literal[python-few_small_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-few_small_strings]
N/A
N/A
20.4 µs
test_validate_literal[python-few_str_enum]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-few_str_enum]
N/A
N/A
25.4 µs
test_validate_literal[python-many_ints]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-many_ints]
N/A
N/A
20.6 µs
test_validate_literal[python-many_large_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-many_large_strings]
N/A
N/A
20.7 µs
test_validate_literal[python-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py::test_validate_literal[python-many_small_strings]
N/A
N/A
20.4 µs
test_variable_tuple
tests/benchmarks/test_micro_benchmarks.py::test_variable_tuple
N/A
N/A
31.5 µs
test_with_default
tests/benchmarks/test_micro_benchmarks.py::test_with_default
N/A
N/A
41.8 µs
test_nested_schema_inlined
tests/benchmarks/test_nested_benchmark.py::test_nested_schema_inlined
N/A
N/A
95.4 ms
test_nested_schema_using_defs
tests/benchmarks/test_nested_benchmark.py::test_nested_schema_using_defs
N/A
N/A
101.3 ms
test_core_dict
tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel::test_core_dict
N/A
N/A
259.7 µs
test_core_dict_filter
tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel::test_core_dict_filter
N/A
N/A
266 µs
test_core_json
tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel::test_core_json
N/A
N/A
296 µs
test_core_model_json
tests/benchmarks/test_serialization_micro.py::test_core_model_json
N/A
N/A
48.5 µs
test_core_model_json_extra
tests/benchmarks/test_serialization_micro.py::test_core_model_json_extra
N/A
N/A
55.3 µs
test_core_model_py
tests/benchmarks/test_serialization_micro.py::test_core_model_py
N/A
N/A
53.3 µs
test_core_model_py_extra
tests/benchmarks/test_serialization_micro.py::test_core_model_py_extra
N/A
N/A
60 µs
test_dataclass_serialization_json
tests/benchmarks/test_serialization_micro.py::test_dataclass_serialization_json
N/A
N/A
44.8 µs
test_dataclass_serialization_python
tests/benchmarks/test_serialization_micro.py::test_dataclass_serialization_python
N/A
N/A
43.2 µs
test_dataclass_to_json
tests/benchmarks/test_serialization_micro.py::test_dataclass_to_json
N/A
N/A
72 µs
test_date_format
tests/benchmarks/test_serialization_micro.py::test_date_format
N/A
N/A
99 µs
test_date_format_function
tests/benchmarks/test_serialization_micro.py::test_date_format_function
N/A
N/A
102 µs
test_date_format_function_no_info
tests/benchmarks/test_serialization_micro.py::test_date_format_function_no_info
N/A
N/A
99.9 µs
test_datetime
tests/benchmarks/test_serialization_micro.py::test_datetime
N/A
N/A
50.1 µs
test_filter
tests/benchmarks/test_serialization_micro.py::test_filter
N/A
N/A
111.9 µs
test_json_any_list_int
tests/benchmarks/test_serialization_micro.py::test_json_any_list_int
N/A
N/A
1.1 ms
test_json_any_list_str
tests/benchmarks/test_serialization_micro.py::test_json_any_list_str
N/A
N/A
1.2 ms
test_json_direct_list_int
tests/benchmarks/test_serialization_micro.py::test_json_direct_list_int
N/A
N/A
584.4 µs
test_json_direct_list_str
tests/benchmarks/test_serialization_micro.py::test_json_direct_list_str
N/A
N/A
676.8 µs
test_model_exclude_unset_false
tests/benchmarks/test_serialization_micro.py::test_model_exclude_unset_false
N/A
N/A
56.5 µs
test_model_exclude_unset_true
tests/benchmarks/test_serialization_micro.py::test_model_exclude_unset_true
N/A
N/A
68.5 µs
test_model_list_core_json
tests/benchmarks/test_serialization_micro.py::test_model_list_core_json
N/A
N/A
660.7 µs
test_python_json_list_int
tests/benchmarks/test_serialization_micro.py::test_python_json_list_int
N/A
N/A
589.7 µs
test_python_json_list_none
tests/benchmarks/test_serialization_micro.py::test_python_json_list_none
N/A
N/A
555.3 µs
test_python_json_list_str
tests/benchmarks/test_serialization_micro.py::test_python_json_list_str
N/A
N/A
598.9 µs
test_ser_list_of_lists
tests/benchmarks/test_serialization_micro.py::test_ser_list_of_lists
N/A
N/A
6.1 ms
test_to_json_list_of_lists
tests/benchmarks/test_serialization_micro.py::test_to_json_list_of_lists
N/A
N/A
8.5 ms
test_to_string_direct
tests/benchmarks/test_serialization_micro.py::test_to_string_direct
N/A
N/A
32.1 µs
test_to_string_format
tests/benchmarks/test_serialization_micro.py::test_to_string_format
N/A
N/A
39.4 µs
test_uuid
tests/benchmarks/test_serialization_micro.py::test_uuid
N/A
N/A
63.5 µs

Commits

Click on a commit to change the comparison range
base
main
44621f1
+13%
fix test as well
9ca9b43
3 months ago by sydney-runkle
ResourcesHomePricingDocsBlogGitHub
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.