marcospereirampj / python-keycloak

MIT License
692 stars 296 forks source link

[Keycloak Admin.create_user() ] Return Type Hint is incorrect #544

Closed fabinca closed 3 months ago

fabinca commented 3 months ago

Screenshot from 2024-04-08 15-07-32 Screenshot from 2024-04-08 15-08-07

user_id = keycloak_admin.create_user(
        {
            "username": username,
            "enabled": True,
            "emailVerified": True,
            "credentials": [{"value": password, "type": "password"}],
        },
        exist_ok=True,
    )

Above function returns the user_id, however type hints suggest it returns a dict, documentation suggests it returns a user representation.

ryshoooo commented 3 months ago

Thanks for the report, I believe this is a duplicate of https://github.com/marcospereirampj/python-keycloak/issues/421

fabinca commented 3 months ago

true I'm working on the pr