diff --git a/pandas/io/common.py b/pandas/io/common.py index 78fcdf8ff14b4..c91e698accd7c 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -910,12 +910,13 @@ def get_handle( or not hasattr(handle, "seekable") ): handle = _IOWrapper(handle) + # error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "_IOWrapper | BaseBuffer" [type-var] handle = TextIOWrapper( handle, encoding=ioargs.encoding, errors=errors, newline="", - ) + ) # type: ignore[arg-type] handles.append(handle) # only marked as wrapped when the caller provided a handle is_wrapped = not (