@@ -161,6 +161,21 @@ def __init__(
161161 batch_size : int | None = None ,
162162 ** kwargs : Unpack [AzureConfig ],
163163 ) -> 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 : ...
164179 def __init__ ( # noqa: PLR0913
165180 self ,
166181 protocol : SUPPORTED_PROTOCOLS_T | str | None = None ,
@@ -355,7 +370,7 @@ async def _cat_file(
355370 range_bytes = await obs .get_range_async (store , path , start = start , end = end )
356371 return range_bytes .to_bytes ()
357372
358- async def _cat (
373+ async def _cat ( # type: ignore (fsspec has bad typing)
359374 self ,
360375 path : str ,
361376 recursive : bool = False ,
@@ -373,15 +388,15 @@ async def _cat(
373388 raise FileNotFoundError (err_msg )
374389
375390 # Call the original _cat only on files
376- return await super ()._cat (
391+ return await super ()._cat ( # type: ignore (fsspec has bad typing)
377392 files ,
378393 recursive = False ,
379394 on_error = on_error ,
380395 batch_size = batch_size ,
381396 ** _kwargs ,
382397 )
383398
384- async def _cat_ranges ( # noqa: PLR0913
399+ async def _cat_ranges ( # noqa: PLR0913 # type: ignore (fsspec has bad typing)
385400 self ,
386401 paths : list [str ],
387402 starts : list [int ] | int ,
0 commit comments