Skip to content

Commit 73f0222

Browse files
authored
Merge pull request pandas-dev#12 from shengjie2013/typeignore-common
type ignore common.py
2 parents 1979cb5 + 5e2f18b commit 73f0222

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/common.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -910,12 +910,13 @@ 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]
913914
handle = TextIOWrapper(
914915
handle,
915916
encoding=ioargs.encoding,
916917
errors=errors,
917918
newline="",
918-
)
919+
) # type: ignore[arg-type]
919920
handles.append(handle)
920921
# only marked as wrapped when the caller provided a handle
921922
is_wrapped = not (

0 commit comments

Comments
 (0)