Skip to content

typing in roles.py #545

Closed
Closed
@gitwouter

Description

@gitwouter

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

in roles.py

def remove_permissions(self, id: str, permissions: List[str]) -> Any:
def add_permissions(self, id: str, permissions: List[str]) -> dict[str, Any]:

type annotation should be

permissions: List[dict[str, str]]

Reproduction

this is a development time type checking problem

Additional context

No response

auth0-python version

4.5.0

Python version

3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions