Skip to content

Commit 9eaab40

Browse files
committed
Fixed type:ignore from type-arg to type-var
1 parent 12aa2c8 commit 9eaab40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/io/common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -910,13 +910,14 @@ def get_handle(
910910
or not hasattr(handle, "seekable")
911911
):
912912
handle = _IOWrapper(handle)
913-
# error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "_IOWrapper | BaseBuffer" [type-var]
913+
# error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot
914+
# be "_IOWrapper | BaseBuffer" [type-var]
914915
handle = TextIOWrapper(
915-
handle,
916+
handle, # type: ignore[type-var]
916917
encoding=ioargs.encoding,
917918
errors=errors,
918919
newline="",
919-
) # type: ignore[arg-type]
920+
)
920921
handles.append(handle)
921922
# only marked as wrapped when the caller provided a handle
922923
is_wrapped = not (

0 commit comments

Comments
 (0)