Skip to content

Commit 1dd4080

Browse files
committed
fix tyoe, debug url request
1 parent b23caa8 commit 1dd4080

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/io/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,10 +1340,10 @@ def _resolve_local_path(path_str: str) -> Path:
13401340

13411341

13421342
def iterdir(
1343-
path: FilePath | BaseBuffer,
1343+
path: FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str],
13441344
extensions: str | Iterable[str] | None = None,
13451345
glob: str | None = None,
1346-
) -> list[str | Path] | BaseBuffer:
1346+
) -> list[FilePath] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str]:
13471347
"""Yield file paths in a directory (no nesting allowed).
13481348
13491349
Supports:

pandas/io/parsers/readers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ def _validate_names(names: Sequence[Hashable] | None) -> None:
671671

672672

673673
def _multi_file_generator(
674-
list_of_files: list[str], kwds
674+
list_of_files: list[FilePath], kwds
675675
) -> Generator[DataFrame] | Generator[TextFileReader]:
676676
"""Generator for multiple files."""
677677
for file in list_of_files:

0 commit comments

Comments
 (0)