Skip to content

Commit 065da14

Browse files
committed
fix: compatibility with pydantic 2.12
1 parent 20a8443 commit 065da14

File tree

4 files changed

+555
-440
lines changed

4 files changed

+555
-440
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
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

doc/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
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

scim2_tester/urns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)