BlogDocs

Hide private attributes (`PrivateAttr`) from `__init__` signature in type checkers(#9293)

Merged
Merging
idan22moral:hide-private-attrs-in-init
into
main
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
13
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py::test_efficiency_with_highly_nested_examples
0%
955 µs
954.5 µs
test_schema_build
tests/benchmarks/test_discriminated_unions.py::test_schema_build
0%
4.3 ms
4.2 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py::test_fastapi_startup_perf
0%
312.5 ms
312.2 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py::test_fastapi_startup_perf
0%
37.3 ms
37.4 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py::test_north_star_dump_json
0%
35 ms
35 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py::test_north_star_dump_python
0%
17.1 ms
17.1 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py::test_north_star_json_dumps
+1%
22.6 ms
22.5 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py::test_north_star_json_loads
0%
22.2 ms
22.2 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py::test_north_star_validate_json
0%
52.9 ms
52.8 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_json_strict
0%
52.7 ms
52.6 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py::test_north_star_validate_python
0%
43.8 ms
43.7 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_python_strict
0%
28.8 ms
28.8 ms
test_construct_schema
tests/benchmarks/test_schema_build.py::test_construct_schema
0%
5 ms
5 ms

Commits

Click on a commit to change the comparison range
base
main
131cfa7
0%
fix: define PydanticModelPrivateAttr on `typing.TYPE_CHECKING=False` brance
d853bd4
a month ago by idan22moral
ResourcesHomePricingDocsBlogGitHub
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.