@@ -161,6 +161,21 @@ def __init__(
161
161
batch_size : int | None = None ,
162
162
** kwargs : Unpack [AzureConfig ],
163
163
) -> None : ...
164
+ @overload
165
+ def __init__ (
166
+ self ,
167
+ protocol : Literal ["file" ],
168
+ * args : Any ,
169
+ config : None = None ,
170
+ client_options : None = None ,
171
+ retry_config : None = None ,
172
+ asynchronous : bool = False ,
173
+ max_cache_size : int = 10 ,
174
+ loop : Any = None ,
175
+ batch_size : int | None = None ,
176
+ automatic_cleanup : bool = False ,
177
+ mkdir : bool = False ,
178
+ ) -> None : ...
164
179
def __init__ ( # noqa: PLR0913
165
180
self ,
166
181
protocol : SUPPORTED_PROTOCOLS_T | str | None = None ,
@@ -355,7 +370,7 @@ async def _cat_file(
355
370
range_bytes = await obs .get_range_async (store , path , start = start , end = end )
356
371
return range_bytes .to_bytes ()
357
372
358
- async def _cat (
373
+ async def _cat ( # type: ignore (fsspec has bad typing)
359
374
self ,
360
375
path : str ,
361
376
recursive : bool = False ,
@@ -373,15 +388,15 @@ async def _cat(
373
388
raise FileNotFoundError (err_msg )
374
389
375
390
# Call the original _cat only on files
376
- return await super ()._cat (
391
+ return await super ()._cat ( # type: ignore (fsspec has bad typing)
377
392
files ,
378
393
recursive = False ,
379
394
on_error = on_error ,
380
395
batch_size = batch_size ,
381
396
** _kwargs ,
382
397
)
383
398
384
- async def _cat_ranges ( # noqa: PLR0913
399
+ async def _cat_ranges ( # noqa: PLR0913 # type: ignore (fsspec has bad typing)
385
400
self ,
386
401
paths : list [str ],
387
402
starts : list [int ] | int ,
0 commit comments