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

@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
import logging
from dataclasses import dataclass # pylint: disable=wrong-import-order
from dataclasses import dataclass
from enum import Enum
from typing import List, Optional, Set
from urllib import parse
@@ -79,7 +79,7 @@ def strip_comments_from_sql(statement: str) -> str:
@dataclass(eq=True, frozen=True)
class Table: # pylint: disable=too-few-public-methods
class Table:
"""
A fully qualified SQL table conforming to [[catalog.]schema.]table.
"""
@@ -265,9 +265,7 @@ class ParsedQuery:
exec_sql += f"CREATE {method} {full_table_name} AS \n{sql}"
return exec_sql
def _extract_from_token( # pylint: disable=too-many-branches
self, token: Token
) -> None:
def _extract_from_token(self, token: Token) -> None:
"""
<Identifier> store a list of subtokens and <IdentifierList> store lists of
subtoken list.