We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12aa2c8 commit 9eaab40Copy full SHA for 9eaab40
pandas/io/common.py
@@ -910,13 +910,14 @@ def get_handle(
910
or not hasattr(handle, "seekable")
911
):
912
handle = _IOWrapper(handle)
913
- # error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "_IOWrapper | BaseBuffer" [type-var]
+ # error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot
914
+ # be "_IOWrapper | BaseBuffer" [type-var]
915
handle = TextIOWrapper(
- handle,
916
+ handle, # type: ignore[type-var]
917
encoding=ioargs.encoding,
918
errors=errors,
919
newline="",
- ) # type: ignore[arg-type]
920
+ )
921
handles.append(handle)
922
# only marked as wrapped when the caller provided a handle
923
is_wrapped = not (
0 commit comments