File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1344,7 +1344,7 @@ def iterdir(
1344
1344
extensions : str | Iterable [str ] | None = None ,
1345
1345
glob : str | None = None ,
1346
1346
storage_options : StorageOptions | None = None ,
1347
- ) -> list [FilePath ] | ReadCsvBuffer [bytes ] | ReadCsvBuffer [str ]:
1347
+ ) -> FilePath | list [FilePath ] | ReadCsvBuffer [bytes ] | ReadCsvBuffer [str ]: # type: ignore[assignment]
1348
1348
"""Yield file paths in a directory (no nesting allowed).
1349
1349
1350
1350
Supports:
@@ -1412,7 +1412,7 @@ def iterdir(
1412
1412
glob ,
1413
1413
):
1414
1414
result .append (resolved_path )
1415
- return result
1415
+ return result # type: ignore[return-value]
1416
1416
1417
1417
if resolved_path .is_dir ():
1418
1418
for entry in resolved_path .iterdir ():
@@ -1423,7 +1423,7 @@ def iterdir(
1423
1423
glob ,
1424
1424
):
1425
1425
result .append (entry )
1426
- return result
1426
+ return result # type: ignore[return-value]
1427
1427
1428
1428
raise ValueError (
1429
1429
f"The path '{ resolved_path } ' is neither a file nor a directory."
@@ -1458,5 +1458,5 @@ def iterdir(
1458
1458
extensions ,
1459
1459
glob ,
1460
1460
):
1461
- result .append (f"{ scheme } ://{ path_obj } " )
1462
- return result
1461
+ result .append (f"{ scheme } ://{ path_obj } " ) # type: ignore[arg-type]
1462
+ return result # type: ignore[return-value]
You can’t perform that action at this time.
0 commit comments