mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: upgrade black (#19410)
This commit is contained in:
@@ -418,7 +418,9 @@ def is_owner(obj: Union[Dashboard, Slice], user: User) -> bool:
|
||||
return obj and user in obj.owners
|
||||
|
||||
|
||||
def check_resource_permissions(check_perms: Callable[..., Any],) -> Callable[..., Any]:
|
||||
def check_resource_permissions(
|
||||
check_perms: Callable[..., Any],
|
||||
) -> Callable[..., Any]:
|
||||
"""
|
||||
A decorator for checking permissions on a request using the passed-in function.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user