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(
13441344 extensions : str | Iterable [str ] | None = None ,
13451345 glob : str | None = None ,
13461346 storage_options : StorageOptions | None = None ,
1347- ) -> list [FilePath ] | ReadCsvBuffer [bytes ] | ReadCsvBuffer [str ]:
1347+ ) -> FilePath | list [FilePath ] | ReadCsvBuffer [bytes ] | ReadCsvBuffer [str ]: # type: ignore[assignment]
13481348 """Yield file paths in a directory (no nesting allowed).
13491349
13501350 Supports:
@@ -1412,7 +1412,7 @@ def iterdir(
14121412 glob ,
14131413 ):
14141414 result .append (resolved_path )
1415- return result
1415+ return result # type: ignore[return-value]
14161416
14171417 if resolved_path .is_dir ():
14181418 for entry in resolved_path .iterdir ():
@@ -1423,7 +1423,7 @@ def iterdir(
14231423 glob ,
14241424 ):
14251425 result .append (entry )
1426- return result
1426+ return result # type: ignore[return-value]
14271427
14281428 raise ValueError (
14291429 f"The path '{ resolved_path } ' is neither a file nor a directory."
@@ -1458,5 +1458,5 @@ def iterdir(
14581458 extensions ,
14591459 glob ,
14601460 ):
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