Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Jul 4, 2022
1 parent 69a4d1f commit 89114f6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions superset/security/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ def _is_granter_pvm( # pylint: disable=no-self-use
return pvm.permission.name in {"can_override_role_permissions", "can_approve"}

def on_permission_after_insert(
self, mapper: Mapper, connection: Connection, target: "Permission"
self, mapper: Mapper, connection: Connection, target: Permission
) -> None:
"""
Hook that allows for further custom operations when a new permission
Expand All @@ -948,10 +948,9 @@ def on_permission_after_insert(
:param connection: The DB-API connection
:param target: The mapped instance being persisted
"""
pass

def on_view_menu_after_insert(
self, mapper: Mapper, connection: Connection, target: "ViewMenu"
self, mapper: Mapper, connection: Connection, target: ViewMenu
) -> None:
"""
Hook that allows for further custom operations when a new ViewMenu
Expand All @@ -965,10 +964,9 @@ def on_view_menu_after_insert(
:param connection: The DB-API connection
:param target: The mapped instance being persisted
"""
pass

def on_permission_view_after_insert(
self, mapper: Mapper, connection: Connection, target: "PermissionView"
self, mapper: Mapper, connection: Connection, target: PermissionView
) -> None:
"""
Hook that allows for further custom operations when a new PermissionView
Expand All @@ -982,9 +980,8 @@ def on_permission_view_after_insert(
:param connection: The DB-API connection
:param target: The mapped instance being persisted
"""
pass

def set_perm( # pylint: disable=unused-argument
def set_perm(
self, mapper: Mapper, connection: Connection, target: "BaseDatasource"
) -> None:
"""
Expand Down

0 comments on commit 89114f6

Please sign in to comment.