Skip to content

Commit 5ffc3ae

Browse files
authored
Merge pull request #92 from vpatov/91-user-generic-params
fix: Add explicit extension generic parameter to User class
2 parents 5bb229f + 9aaa3d1 commit 5ffc3ae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scim2_models/rfc7643/user.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from ..base import Returned
1818
from ..base import Uniqueness
1919
from ..utils import Base64Bytes
20+
from .resource import AnyExtension
2021
from .resource import Resource
2122

2223

@@ -213,7 +214,7 @@ class X509Certificate(MultiValuedComplexAttribute):
213214
"""The value of an X.509 certificate."""
214215

215216

216-
class User(Resource):
217+
class User(Resource[AnyExtension]):
217218
schemas: Annotated[list[str], Required.true] = [
218219
"urn:ietf:params:scim:schemas:core:2.0:User"
219220
]

tests/test_list_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_enterprise_user(load_sample):
4040
}
4141
response = ListResponse[User[EnterpriseUser]].model_validate(payload)
4242
obj = response.resources[0]
43-
assert isinstance(obj, User[EnterpriseUser])
43+
assert isinstance(obj, User)
4444

4545

4646
def test_group(load_sample):

0 commit comments

Comments
 (0)