From 2a8019b0c93a276794ae0f01d8f1562441a5dda8 Mon Sep 17 00:00:00 2001 From: Nikolay Vasilev Date: Sat, 9 Nov 2024 17:24:49 +0000 Subject: [PATCH] Fixed type:ignore from type-arg to type-var --- pandas/io/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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="",