diff --git a/pandas/io/common.py b/pandas/io/common.py index b4d35c159b1a1..de70ed91c7dd4 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -910,10 +910,10 @@ 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] + # error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot + # be "_IOWrapper | BaseBuffer" [type-var] handle = TextIOWrapper( - handle, + handle, # type: ignore[type-var] encoding=ioargs.encoding, errors=errors, newline="",