Skip to content

Commit df5ace2

Browse files
committed
chore: more precise type annotations
1 parent b994eb8 commit df5ace2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scim2_models/messages/patch_op.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Op(str, Enum):
5252
describing the target of the operation."""
5353

5454
def _validate_mutability(
55-
self, resource_class: type[BaseModel], field_name: str
55+
self, resource_class: type[Resource[Any]], field_name: str
5656
) -> None:
5757
"""Validate mutability constraints."""
5858
# RFC 7644 Section 3.5.2: "Servers should be tolerant of schema extensions"
@@ -73,7 +73,7 @@ def _validate_mutability(
7373
raise ValueError(Error.make_mutability_error().detail)
7474

7575
def _validate_required_attribute(
76-
self, resource_class: type[BaseModel], field_name: str
76+
self, resource_class: type[Resource[Any]], field_name: str
7777
) -> None:
7878
"""Validate required attribute constraints for remove operations."""
7979
# RFC 7644 Section 3.5.2.3: Only validate for remove operations

0 commit comments

Comments
 (0)