Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyathena/async_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _collect_result_set(self, query_id: str) -> AthenaResultSet:
def execute(
self,
operation: str,
parameters: Optional[Dict[str, Any]] = None,
parameters: Optional[Union[Dict[str, Any], List[str]]] = None,
work_group: Optional[str] = None,
s3_staging_dir: Optional[str] = None,
cache_size: Optional[int] = 0,
Expand Down
5 changes: 4 additions & 1 deletion pyathena/pandas/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def execute(
return self

def executemany(
self, operation: str, seq_of_parameters: List[Optional[Dict[str, Any]]], **kwargs
self,
operation: str,
seq_of_parameters: List[Optional[Union[Dict[str, Any], List[str]]]],
**kwargs,
) -> None:
for parameters in seq_of_parameters:
self.execute(operation, parameters, **kwargs)
Expand Down
5 changes: 4 additions & 1 deletion pyathena/spark/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ def close(self) -> None:
self._terminate_session()

def executemany(
self, operation: str, seq_of_parameters: List[Optional[Dict[str, Any]]], **kwargs
self,
operation: str,
seq_of_parameters: List[Optional[Union[Dict[str, Any], List[str]]]],
**kwargs,
) -> None:
raise NotSupportedError

Expand Down
2 changes: 1 addition & 1 deletion pyathena/sqlalchemy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


class _HashableDict(dict): # type: ignore
def __hash__(self):
def __hash__(self): # type: ignore
return hash(tuple(sorted(self.items())))
Loading