From 5e2f18b9d24a7394431ac89d293fad7b6b3a8a08 Mon Sep 17 00:00:00 2001 From: Larry Date: Sat, 9 Nov 2024 16:20:47 +0000 Subject: [PATCH] type ignore common.py --- pandas/io/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (