Skip to content

Commit 103db50

Browse files
committed
fix typing
1 parent f3a10e0 commit 103db50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/parsers/readers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def read_csv(
860860
float_precision: Literal["high", "legacy", "round_trip"] | None = None,
861861
storage_options: StorageOptions | None = None,
862862
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
863-
) -> DataFrame | TextFileReader:
863+
) -> DataFrame | TextFileReader | Generator[DataFrame] | Generator[TextFileReader]:
864864
# locals() should never be modified
865865
kwds = locals().copy()
866866
del kwds["filepath_or_buffer"]
@@ -995,7 +995,7 @@ def read_table(
995995
float_precision: Literal["high", "legacy", "round_trip"] | None = None,
996996
storage_options: StorageOptions | None = None,
997997
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
998-
) -> DataFrame | TextFileReader:
998+
) -> DataFrame | TextFileReader | Generator[DataFrame] | Generator[TextFileReader]:
999999
# locals() should never be modified
10001000
kwds = locals().copy()
10011001
del kwds["filepath_or_buffer"]
@@ -1065,7 +1065,7 @@ def read_fwf(
10651065
iterator: bool = False,
10661066
chunksize: int | None = None,
10671067
**kwds: Unpack[_read_shared[HashableT]],
1068-
) -> DataFrame | TextFileReader:
1068+
) -> DataFrame | TextFileReader | Generator[DataFrame] | Generator[TextFileReader]:
10691069
r"""
10701070
Read a table of fixed-width formatted lines into DataFrame.
10711071

0 commit comments

Comments
 (0)