File tree Expand file tree Collapse file tree 4 files changed +555
-440
lines changed
Expand file tree Collapse file tree 4 files changed +555
-440
lines changed Original file line number Diff line number Diff line change 33 - repo : https://github.com/astral-sh/ruff-pre-commit
44 rev : ' v0.12.10'
55 hooks :
6- - id : ruff
6+ - id : ruff-check
77 args : [--fix, --exit-non-zero-on-fix]
88 - id : ruff-format
99 - repo : https://github.com/pre-commit/pre-commit-hooks
Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ [0.2.4] - Unreleased
5+ --------------------
6+
7+ Fixed
8+ ^^^^^
9+ - Compatibility with Pydantic 2.12.
10+
411[0.2.3] - 2025-08-22
512--------------------
613
Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ def iter_urns(
3737
3838 field_type = model .get_field_root_type (field_name )
3939
40- if issubclass (field_type , Extension ):
40+ if isclass ( field_type ) and issubclass (field_type , Extension ):
4141 urn = field_type .model_fields ["schemas" ].default [0 ]
42- elif issubclass (model , Extension ):
42+ elif isclass ( model ) and issubclass (model , Extension ):
4343 urn = model ().get_attribute_urn (field_name )
4444 else :
4545 urn = _to_camel (field_name )
You can’t perform that action at this time.
0 commit comments