We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2bac9 commit 9a81673Copy full SHA for 9a81673
2 files changed
scim2_models/base.py
@@ -429,7 +429,7 @@ def annotation_type_filter(item):
429
return field_annotation
430
431
@classmethod
432
- def get_field_root_type(cls, attribute_name: str) -> type | None:
+ def get_field_root_type(cls, attribute_name: str) -> Optional[type]:
433
"""Extract the root type from a model field.
434
435
For example, return 'GroupMember' for
scim2_models/rfc7643/schema.py
@@ -48,7 +48,7 @@ def make_python_model(
48
obj: Union["Schema", "Attribute"],
49
base: Optional[type[BaseModel]] = None,
50
multiple=False,
51
-) -> "Resource" | "Extension":
+) -> Union[Resource, Extension]:
52
"""Build a Python model from a Schema or an Attribute object."""
53
if isinstance(obj, Attribute):
54
pydantic_attributes = {
0 commit comments