File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -165,11 +165,16 @@ def is_fsspec_url(url: FilePathOrBuffer) -> bool:
165165 )
166166
167167
168- def get_filepath_or_buffer ( # type: ignore[assignment]
168+ # https://github.com/python/mypy/issues/8708
169+ # error: Incompatible default for argument "encoding" (default has type "None",
170+ # argument has type "str")
171+ # error: Incompatible default for argument "mode" (default has type "None",
172+ # argument has type "str")
173+ def get_filepath_or_buffer (
169174 filepath_or_buffer : FilePathOrBuffer ,
170- encoding : EncodingVar = None ,
175+ encoding : EncodingVar = None , # type: ignore[assignment]
171176 compression : CompressionOptions = None ,
172- mode : ModeVar = None ,
177+ mode : ModeVar = None , # type: ignore[assignment]
173178 storage_options : StorageOptions = None ,
174179) -> IOargs [ModeVar , EncodingVar ]:
175180 """
You can’t perform that action at this time.
0 commit comments