File tree 1 file changed +8
-3
lines changed
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:
165
165
)
166
166
167
167
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 (
169
174
filepath_or_buffer : FilePathOrBuffer ,
170
- encoding : EncodingVar = None ,
175
+ encoding : EncodingVar = None , # type: ignore[assignment]
171
176
compression : CompressionOptions = None ,
172
- mode : ModeVar = None ,
177
+ mode : ModeVar = None , # type: ignore[assignment]
173
178
storage_options : StorageOptions = None ,
174
179
) -> IOargs [ModeVar , EncodingVar ]:
175
180
"""
You can’t perform that action at this time.
0 commit comments