Skip to content

Commit 4f52d6a

Browse files
authored
Merge pull request #86 from yassun7010/add_typehint
chore: add type hint.
2 parents 1dc05ec + 986503c commit 4f52d6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

turu-snowflake/src/turu/snowflake/async_cursor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ async def fetch_arrow_batches(self) -> AsyncIterator[GenericPyArrowTable]:
318318
for batch in self._raw_cursor.fetch_arrow_batches():
319319
yield cast(GenericPyArrowTable, batch)
320320

321-
async def fetch_pandas_all(self, **kwargs) -> GenericPandasDataFrame:
321+
async def fetch_pandas_all(self, **kwargs: Any) -> GenericPandasDataFrame:
322322
"""Fetch Pandas dataframes."""
323323

324324
df = self._raw_cursor.fetch_pandas_all(**kwargs)
@@ -329,7 +329,7 @@ async def fetch_pandas_all(self, **kwargs) -> GenericPandasDataFrame:
329329
return cast(GenericPandasDataFrame, df)
330330

331331
async def fetch_pandas_batches(
332-
self, **kwargs
332+
self, **kwargs: Any
333333
) -> AsyncIterator[GenericPandasDataFrame]:
334334
"""Fetch Pandas dataframes in batches, where 'batch' refers to Snowflake Chunk."""
335335

turu-snowflake/src/turu/snowflake/cursor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def fetch_arrow_batches(self) -> "Iterator[GenericPyArrowTable]":
331331
Iterator[GenericPyArrowTable], self._raw_cursor.fetch_arrow_batches()
332332
)
333333

334-
def fetch_pandas_all(self, **kwargs) -> "GenericPandasDataFrame":
334+
def fetch_pandas_all(self, **kwargs: Any) -> "GenericPandasDataFrame":
335335
"""Fetch a single Pandas dataframe."""
336336
df = self._raw_cursor.fetch_pandas_all(**kwargs)
337337

@@ -340,7 +340,7 @@ def fetch_pandas_all(self, **kwargs) -> "GenericPandasDataFrame":
340340

341341
return cast(GenericPandasDataFrame, df)
342342

343-
def fetch_pandas_batches(self, **kwargs) -> "Iterator[GenericPandasDataFrame]":
343+
def fetch_pandas_batches(self, **kwargs: Any) -> "Iterator[GenericPandasDataFrame]":
344344
"""Fetch Pandas dataframes in batches, where 'batch' refers to Snowflake Chunk."""
345345

346346
return cast(

0 commit comments

Comments
 (0)