Skip to content

Commit 03c4bdb

Browse files
committed
chore: dependency update
1 parent d5f199b commit 03c4bdb

2 files changed

Lines changed: 509 additions & 460 deletions

File tree

scim2_models/resources/schema.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Optional
88
from typing import TypeVar
99
from typing import Union
10+
from typing import cast
1011

1112
from pydantic import Base64Bytes
1213
from pydantic import Field
@@ -69,7 +70,10 @@ def _make_python_model(
6970
raise ValueError("Schema or Attribute 'name' must be defined")
7071

7172
model_name = to_pascal(to_snake(obj.name))
72-
model: type[T] = create_model(model_name, __base__=base, **pydantic_attributes) # type: ignore[call-overload]
73+
model = cast(
74+
type[T],
75+
create_model(model_name, __base__=base, **pydantic_attributes), # type: ignore[call-overload]
76+
)
7377

7478
if isinstance(obj, Schema) and obj.id:
7579
model.__schema__ = URN(obj.id) # type: ignore[attr-defined]

0 commit comments

Comments
 (0)