Enabled pylint rules in db_engines module: (#11016)

- `unused_import` and `import_error` - not promting anymore
- changed unused param to private and removed `unused_argument`
This commit is contained in:
Kasia Kucharczyk
2020-09-23 19:45:26 +02:00
committed by GitHub
parent a26f29e7c8
commit 26fcc08906

View File

@@ -17,16 +17,16 @@
from typing import Optional, TYPE_CHECKING
if TYPE_CHECKING:
from pyhive.hive import Cursor # pylint: disable=unused-import
from TCLIService.ttypes import TFetchOrientation # pylint: disable=unused-import
from pyhive.hive import Cursor
from TCLIService.ttypes import TFetchOrientation
# pylint: disable=protected-access
# TODO: contribute back to pyhive.
def fetch_logs(
self: "Cursor",
max_rows: int = 1024, # pylint: disable=unused-argument
_max_rows: int = 1024,
orientation: Optional["TFetchOrientation"] = None,
) -> str: # pylint: disable=unused-argument
) -> str:
"""Mocked. Retrieve the logs produced by the execution of the query.
Can be called multiple times to fetch the logs produced after
the previous call.
@@ -37,7 +37,7 @@ def fetch_logs(
"""
from pyhive import hive
from TCLIService import ttypes
from thrift import Thrift # pylint: disable=import-error
from thrift import Thrift
orientation = orientation or ttypes.TFetchOrientation.FETCH_NEXT
try: