fix: methods incorrect type and update deprecated targets (#23935)

This commit is contained in:
Daniel Vaz Gaspar
2023-05-05 18:57:27 +01:00
committed by GitHub
parent 841726d432
commit 694f93326d
45 changed files with 253 additions and 192 deletions

View File

@@ -32,7 +32,7 @@ class CurrentUserRestApi(BaseSupersetApi):
openapi_spec_tag = "Current User"
openapi_spec_component_schemas = (UserResponseSchema,)
@expose("/", methods=["GET"])
@expose("/", methods=("GET",))
@safe
def get_me(self) -> Response:
"""Get the user object corresponding to the agent making the request
@@ -62,7 +62,7 @@ class CurrentUserRestApi(BaseSupersetApi):
return self.response(200, result=user_response_schema.dump(g.user))
@expose("/roles/", methods=["GET"])
@expose("/roles/", methods=("GET",))
@safe
def get_my_roles(self) -> Response:
"""Get the user roles corresponding to the agent making the request