Skip to content

Commit 927610b

Browse files
committed
a few more any's
1 parent f17ef43 commit 927610b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pandas-stubs/io/parsers/readers.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def read_fwf(
452452
**kwds: Any,
453453
) -> DataFrame: ...
454454

455-
class TextFileReader(abc.Iterator):
455+
class TextFileReader(abc.Iterator[Any]):
456456
engine: CSVEngine
457457
orig_options: Mapping[str, Any]
458458
chunksize: int | None

pandas-stubs/io/sql.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ from pandas._typing import (
2424
DtypeBackend,
2525
Scalar,
2626
SequenceNotStr,
27-
npt,
27+
np_ndarray,
2828
)
2929

3030
_SQLConnection: TypeAlias = str | sqlalchemy.engine.Connectable | sqlite3.Connection
@@ -155,7 +155,7 @@ class PandasSQL:
155155
dtype: DtypeArg | None = None,
156156
method: (
157157
Literal["multi"]
158-
| Callable[[SQLTable, Any, list[str], Iterable], int | None]
158+
| Callable[[SQLTable, Any, list[str], Iterable[Any]], int | None]
159159
| None
160160
) = None,
161161
engine: str = "auto",
@@ -189,7 +189,7 @@ class SQLTable:
189189
def exists(self) -> bool: ...
190190
def sql_schema(self) -> str: ...
191191
def create(self) -> None: ...
192-
def insert_data(self) -> tuple[list[str], list[npt.NDArray]]: ...
192+
def insert_data(self) -> tuple[list[str], list[np_ndarray]]: ...
193193
def insert(
194194
self, chunksize: int | None = ..., method: str | None = ...
195195
) -> int | None: ...

pandas-stubs/io/stata.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import datetime
44
from io import BytesIO
55
from types import TracebackType
66
from typing import (
7+
Any,
78
Literal,
89
overload,
910
)
@@ -76,7 +77,7 @@ def read_stata(
7677
class StataParser:
7778
def __init__(self) -> None: ...
7879

79-
class StataReader(StataParser, abc.Iterator):
80+
class StataReader(StataParser, abc.Iterator[Any]):
8081
col_sizes: list[int] = ...
8182
path_or_buf: BytesIO = ...
8283
def __init__(

0 commit comments

Comments
 (0)