The rtype annotation in KeycloakUMA.resource_set_create is wrong, or at least incomplete.
It indicates that the return value will be a str when KeycloakClient._handle_response tries to return a deserialized json object.
This can be confusing/annoying when you try to maintain proper type annotations in a large project and your IDE tells you something is wrong.
The UMA specs for that particular endpoint also state that the response should be some json with an "_id" key which (translated to Python) the function does return.
The
rtypeannotation inKeycloakUMA.resource_set_createis wrong, or at least incomplete.It indicates that the return value will be a
strwhenKeycloakClient._handle_responsetries to return a deserialized json object.This can be confusing/annoying when you try to maintain proper type annotations in a large project and your IDE tells you something is wrong.
The UMA specs for that particular endpoint also state that the response should be some json with an
"_id"key which (translated to Python) the function does return.