chore(pylint): Enable useless-suppression check (#16388)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2021-08-23 08:58:41 -07:00
committed by GitHub
parent 970d762779
commit 7e4c940314
66 changed files with 128 additions and 226 deletions

View File

@@ -900,7 +900,7 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
return pvm.permission.name in {"can_override_role_permissions", "can_approve"}
def set_perm( # pylint: disable=no-self-use,unused-argument
def set_perm( # pylint: disable=unused-argument
self, mapper: Mapper, connection: Connection, target: "BaseDatasource"
) -> None:
"""
@@ -910,7 +910,7 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
:param connection: The DB-API connection
:param target: The mapped instance being persisted
"""
link_table = target.__table__ # pylint: disable=no-member
link_table = target.__table__
if target.perm != target.get_perm():
connection.execute(
link_table.update()
@@ -974,8 +974,7 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
)
def raise_for_access(
# pylint: disable=too-many-arguments,too-many-branches,
# pylint: disable=too-many-locals
# pylint: disable=too-many-arguments,too-many-locals
self,
database: Optional["Database"] = None,
datasource: Optional["BaseDatasource"] = None,