koxudaxi
datamodel-code-generator
BlogDocsChangelog

Fix recursive TypeAlias generation for Python 3.11 (covers mutual alias refs)

#2570
Comparing
fix-py311-recursive-typealias
(
f2c93f0
) with
main
(
000b177
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
3

Benchmarks

Skipped (3)

Passed

test_main_jsonschema_required_and_any_of_required
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
47.3 ms47.2 ms
test_main_jsonschema_no_empty_collapsed_external_model
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
32.3 ms32.3 ms
test_main_inheritance_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
100.5 ms100.4 ms
test_main_root_id_jsonschema_self_refs_with_remote_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
70.4 ms70.4 ms
test_main_inheritance_forward_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
100.7 ms100.6 ms
test_main_collapse_root_models
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
68.5 ms68.4 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
36.2 ms36.1 ms
test_main_with_snake_case_field
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
115.6 ms115.5 ms
test_use_default
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
111.7 ms111.7 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
34.1 ms34 ms
test_main_with_strip_default_none
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
108.3 ms108.3 ms
test_main_jsonschema_collapsed_external_references
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
68 ms68 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
38.1 ms38.1 ms
test_main_modular
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
303.4 ms303.3 ms
test_main_jsonschema_multiple_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
75.1 ms75.1 ms
test_main_yaml
tests/main/test_main_yaml.py
CodSpeed Performance Gauge
0%
32.3 ms32.3 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
35.7 ms35.7 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
49.2 ms49.2 ms
test_main_strict_types
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
68.5 ms68.5 ms
test_main_openapi_nullable
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
130.1 ms130.1 ms
test_main_jsonschema_id
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
40.1 ms40.1 ms
test_main_root_id_jsonschema_self_refs_with_local_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
70.2 ms70.2 ms
test_main_json_reuse_enum_default_member
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
66.1 ms66.1 ms
test_main_jsonschema_field_include_all_keys
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
48.7 ms48.7 ms
test_main_type_alias_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
45.4 ms45.4 ms
test_main_jsonschema_special_field_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
52 ms52 ms
test_force_optional
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
122.7 ms122.8 ms
test_main
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
110.5 ms110.6 ms
test_main_jsonschema_nested_deep
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
66.1 ms66.1 ms
test_main_openapi_nullable_31
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
33.6 ms33.7 ms

Commits

Click on a commit to change the comparison range
Base
main
000b177
-0.08%
fix: enhance recursive type alias handling for Python 3.11
da76f2e
14 hours ago
by koxudaxi
0%
fix: improve handling of recursive type aliases and render order
54831b7
13 hours ago
by koxudaxi
-0.01%
fix: skip tests for mutual recursive type aliases on unsupported black versions
3452291
13 hours ago
by koxudaxi
-0.07%
Merge remote-tracking branch 'origin/fix-py311-recursive-typealias' into fix-py311-recursive-typealias # Conflicts: # src/datamodel_code_generator/model/type_alias.py
d23a112
12 hours ago
by koxudaxi
+0.15%
fix: simplify type hint rendering and improve type alias handling
db65d04
11 hours ago
by koxudaxi
-0.03%
fix: remove redundant test for TypeAlias with no fields
75b830b
11 hours ago
by koxudaxi
+0.04%
fix: refine type alias handling in recursive type resolution
ffffee0
11 hours ago
by koxudaxi
+0.02%
Merge branch 'main' into fix-py311-recursive-typealias
d9fb453
9 hours ago
by koxudaxi
-0.21%
fix: update type alias definitions for improved compatibility with Python 3.11
fe7e705
6 hours ago
by koxudaxi
+0.15%
Merge branch 'main' into fix-py311-recursive-typealias
8bcc567
2 hours ago
by koxudaxi
+0.08%
fix: update type alias handling to properly manage forward references per PEP 484
f2c93f0
12 minutes ago
by koxudaxi
© 2025 CodSpeed Technology
Home Terms Privacy Docs