Skip to content

Commit 65dd644

Browse files
authored
Merge pull request pandas-dev#16 from nvasilev/update_mypy
Fixed type:ignore from type-arg to type-var
2 parents 1ef6691 + 2a8019b commit 65dd644

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -910,10 +910,10 @@ def get_handle(
910910
or not hasattr(handle, "seekable")
911911
):
912912
handle = _IOWrapper(handle)
913-
# error: Value of type variable "_BufferT_co" of
914-
# "TextIOWrapper" cannot be "_IOWrapper | BaseBuffer" [type-var]
913+
# error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot
914+
# be "_IOWrapper | BaseBuffer" [type-var]
915915
handle = TextIOWrapper(
916-
handle,
916+
handle, # type: ignore[type-var]
917917
encoding=ioargs.encoding,
918918
errors=errors,
919919
newline="",

0 commit comments

Comments
 (0)