Avatar for the koxudaxi user
koxudaxi
datamodel-code-generator
BlogDocsChangelog

fix: Remove unnecessary pass statement when nested class exists

#2704Merged
Comparing
fix/remove-unnecessary-pass-with-nested-class
(
0ef750c
) with
main
(
a31749d
)
CodSpeed Performance Gauge
0%
Untouched
52
Skipped
10

Benchmarks

62 total
test_main_strict_types
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
72.7 ms72.5 ms
test_main_jsonschema_reserved_field_name[dataclasses.dataclass-reserved_field_name_schema_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
29.9 ms29.9 ms
test_main_type_alias_cycle_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
38.9 ms38.8 ms
test_main_keep_model_order_field_references
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
38.8 ms38.8 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
42.9 ms42.8 ms
test_main_modular
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
324.5 ms324.1 ms
test_main_root_id_jsonschema_self_refs_with_remote_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
77 ms76.9 ms
test_main_yaml
tests/main/test_main_yaml.py
CodSpeed Performance Gauge
0%
34.9 ms34.8 ms
test_main_jsonschema_reserved_field_name[pydantic_v2.BaseModel-reserved_field_name_schema_pydantic.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
45.6 ms45.6 ms
test_main_jsonschema_root_model_ordering[extra_args1-jsonschema_root_model_ordering_keep_model_order.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
135.6 ms135.5 ms
test_main_jsonschema_nested_deep
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
71.5 ms71.5 ms
test_main_root_id_jsonschema_self_refs_with_local_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
76.5 ms76.4 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
53.4 ms53.4 ms
test_main_use_frozen_field[pydantic.BaseModel-use_frozen_field_v1.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
48.5 ms48.5 ms
test_main_jsonschema_collapsed_external_references
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
74.2 ms74.2 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
39.2 ms39.2 ms
test_use_default
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
122 ms121.9 ms
test_main_jsonschema_root_model_default_value_no_annotated
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
80.8 ms80.7 ms
test_main_jsonschema_multiple_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
81.4 ms81.3 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
37 ms37 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
38.9 ms38.9 ms
test_main_jsonschema_root_model_ordering[extra_args0-jsonschema_root_model_ordering.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
136.4 ms136.3 ms
test_main_field_name_shadows_class_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
50.5 ms50.5 ms
test_main_jsonschema_reserved_field_name[typing.TypedDict-reserved_field_name_schema_typed_dict.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
29.2 ms29.2 ms
test_main_jsonschema_special_field_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
55.4 ms55.4 ms

Commits

Click on a commit to change the comparison range
Base
main
a31749d
+0.02%
fix: Remove unnecessary pass statements in nested classes
0ef750c
5 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs