Skip to content

Wrong typing in SCIMClient methods (as well as other functions) #43

@NaqGuug

Description

@NaqGuug

The methods query, patch and delete in SCIMClient expect resource_model to be type(Resource) when in reality it should be just Resource. If you try to pass a type(Resource) (for example type(User)), the following error occurs:

AttributeError: type object 'ScimMetaclass' has no attribute '__schema__'

This same issue appears in scim2-models as well, for example in ResourceType.from_resource(). I have not checked all functions and classes but I think all type(Any) should be converted to just Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions