Skip to content

Commit 309018c

Browse files
CI: MyPy fixup (#36085)
1 parent 361166f commit 309018c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pandas/io/common.py

+8-3
Original file line numberDiff line numberDiff 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
"""

0 commit comments

Comments
 (0)