mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
style(mypy): Spit-and-polish pass (#10001)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -93,7 +93,7 @@ class HiveEngineSpec(PrestoEngineSpec):
|
||||
return BaseEngineSpec.get_all_datasource_names(database, datasource_type)
|
||||
|
||||
@classmethod
|
||||
def fetch_data(cls, cursor: Any, limit: int) -> List[Tuple]:
|
||||
def fetch_data(cls, cursor: Any, limit: int) -> List[Tuple[Any, ...]]:
|
||||
import pyhive
|
||||
from TCLIService import ttypes
|
||||
|
||||
@@ -304,7 +304,7 @@ class HiveEngineSpec(PrestoEngineSpec):
|
||||
schema: Optional[str],
|
||||
database: "Database",
|
||||
query: Select,
|
||||
columns: Optional[List] = None,
|
||||
columns: Optional[List[Dict[str, str]]] = None,
|
||||
) -> Optional[Select]:
|
||||
try:
|
||||
col_names, values = cls.latest_partition(
|
||||
@@ -323,7 +323,7 @@ class HiveEngineSpec(PrestoEngineSpec):
|
||||
return None
|
||||
|
||||
@classmethod
|
||||
def _get_fields(cls, cols: List[dict]) -> List[ColumnClause]:
|
||||
def _get_fields(cls, cols: List[Dict[str, Any]]) -> List[ColumnClause]:
|
||||
return BaseEngineSpec._get_fields(cols) # pylint: disable=protected-access
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user