From fbd4810024f18cb72daff8682754181987277c36 Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Tue, 8 Aug 2023 15:04:53 +0100 Subject: [PATCH] Remove return types for paginated endpoints --- auth0/management/client_grants.py | 2 +- auth0/management/device_credentials.py | 2 +- auth0/management/grants.py | 2 +- auth0/management/hooks.py | 2 +- auth0/management/logs.py | 2 +- auth0/management/organizations.py | 6 +++--- auth0/management/resource_servers.py | 2 +- auth0/management/roles.py | 6 +++--- auth0/management/rules.py | 2 +- auth0/management/users.py | 10 +++++----- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/auth0/management/client_grants.py b/auth0/management/client_grants.py index 4a342d96..88cbcf05 100644 --- a/auth0/management/client_grants.py +++ b/auth0/management/client_grants.py @@ -59,7 +59,7 @@ def all( per_page: int | None = None, include_totals: bool = False, client_id: str | None = None, - ) -> list[dict[str, Any]]: + ): """Retrieves all client grants. Args: diff --git a/auth0/management/device_credentials.py b/auth0/management/device_credentials.py index 4225cd6f..e289cf49 100644 --- a/auth0/management/device_credentials.py +++ b/auth0/management/device_credentials.py @@ -62,7 +62,7 @@ def get( page: int | None = None, per_page: int | None = None, include_totals: bool = False, - ) -> list[dict[str, Any]]: + ): """List device credentials. Args: diff --git a/auth0/management/grants.py b/auth0/management/grants.py index 12b560af..a95d0def 100644 --- a/auth0/management/grants.py +++ b/auth0/management/grants.py @@ -58,7 +58,7 @@ def all( per_page: int | None = None, include_totals: bool = False, extra_params: dict[str, Any] | None = None, - ) -> list[dict[str, Any]]: + ): """Retrieves all grants. Args: diff --git a/auth0/management/hooks.py b/auth0/management/hooks.py index 18ecdf0a..3c03aa5b 100644 --- a/auth0/management/hooks.py +++ b/auth0/management/hooks.py @@ -61,7 +61,7 @@ def all( page: int | None = None, per_page: int | None = None, include_totals: bool = False, - ) -> list[dict[str, Any]]: + ): """Retrieves a list of all hooks. Args: diff --git a/auth0/management/logs.py b/auth0/management/logs.py index b7a62dd0..54164652 100644 --- a/auth0/management/logs.py +++ b/auth0/management/logs.py @@ -63,7 +63,7 @@ def search( from_param: str | None = None, take: int | None = None, include_fields: bool = True, - ) -> list[dict[str, Any]]: + ): """Search log events. Args: diff --git a/auth0/management/organizations.py b/auth0/management/organizations.py index ca26508f..940aef7c 100644 --- a/auth0/management/organizations.py +++ b/auth0/management/organizations.py @@ -61,7 +61,7 @@ def all_organizations( include_totals: bool = True, from_param: str | None = None, take: int | None = None, - ) -> list[dict[str, Any]]: + ): """Retrieves a list of all the organizations. Args: @@ -246,7 +246,7 @@ def all_organization_members( include_totals: bool = True, from_param: str | None = None, take: int | None = None, - ) -> list[dict[str, Any]]: + ): """Retrieves a list of all the organization members. Args: @@ -377,7 +377,7 @@ def all_organization_invitations( page: int | None = None, per_page: int | None = None, include_totals: bool = False, - ) -> list[dict[str, Any]]: + ): """Retrieves a list of all the organization invitations. Args: diff --git a/auth0/management/resource_servers.py b/auth0/management/resource_servers.py index 6663c724..a71d1378 100644 --- a/auth0/management/resource_servers.py +++ b/auth0/management/resource_servers.py @@ -68,7 +68,7 @@ def get_all( page: int | None = None, per_page: int | None = None, include_totals: bool = False, - ) -> list[dict[str, Any]]: + ): """Retrieves all resource servers Args: diff --git a/auth0/management/roles.py b/auth0/management/roles.py index 8188b8d4..9437a018 100644 --- a/auth0/management/roles.py +++ b/auth0/management/roles.py @@ -58,7 +58,7 @@ def list( per_page: int = 25, include_totals: bool = True, name_filter: str | None = None, - ) -> List[dict[str, Any]]: + ): """List or search roles. Args: @@ -135,7 +135,7 @@ def list_users( include_totals: bool = True, from_param: str | None = None, take: int | None = None, - ) -> List[dict[str, Any]]: + ): """List the users that have been associated with a given role. Args: @@ -186,7 +186,7 @@ def add_users(self, id: str, users: List[str]) -> dict[str, Any]: def list_permissions( self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True - ) -> List[dict[str, Any]]: + ): """List the permissions associated to a role. Args: diff --git a/auth0/management/rules.py b/auth0/management/rules.py index 37ae232f..9b0b5d14 100644 --- a/auth0/management/rules.py +++ b/auth0/management/rules.py @@ -61,7 +61,7 @@ def all( page: int | None = None, per_page: int | None = None, include_totals: bool = False, - ) -> list[dict[str, Any]]: + ): """Retrieves a list of all rules. Args: diff --git a/auth0/management/users.py b/auth0/management/users.py index 7128804d..41cf85b4 100644 --- a/auth0/management/users.py +++ b/auth0/management/users.py @@ -63,7 +63,7 @@ def list( include_totals: bool = True, fields: List[str] | None = None, include_fields: bool = True, - ) -> List[dict[str, Any]]: + ): """List or search users. Args: @@ -170,7 +170,7 @@ def update(self, id: str, body: dict[str, Any]) -> dict[str, Any]: def list_organizations( self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True - ) -> List[dict[str, Any]]: + ): """List the organizations that the user is member of. Args: @@ -198,7 +198,7 @@ def list_organizations( def list_roles( self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True - ) -> List[dict[str, Any]]: + ): """List the roles associated with a user. Args: @@ -254,7 +254,7 @@ def add_roles(self, id: str, roles: List[str]) -> dict[str, Any]: def list_permissions( self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True - ) -> List[dict[str, Any]]: + ): """List the permissions associated to the user. Args: @@ -394,7 +394,7 @@ def get_log_events( per_page: int = 50, sort: str | None = None, include_totals: bool = False, - ) -> List[dict[str, Any]]: + ): """Retrieve every log event for a specific user id. Args: