Skip to content

Commit 66165eb

Browse files
committed
Move mypy ignore flags to correct line
1 parent a8b1a55 commit 66165eb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pandas/io/common.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,20 @@ def get_handle(
403403
# GZ Compression
404404
if compression == "gzip":
405405
if is_path:
406-
f = gzip.open(path_or_buf, mode, **compression_args) # type: ignore
406+
f = gzip.open(
407+
path_or_buf, mode, **compression_args # type: ignore
408+
)
407409
else:
408-
f = gzip.GzipFile(fileobj=path_or_buf, **compression_args) # type: ignore
410+
f = gzip.GzipFile(
411+
fileobj=path_or_buf, **compression_args # type: ignore
412+
)
409413

410414
# BZ Compression
411415
elif compression == "bz2":
412416
if is_path:
413-
f = bz2.BZ2File(path_or_buf, mode, **compression_args) # type: ignore
417+
f = bz2.BZ2File(
418+
path_or_buf, mode, **compression_args # type: ignore
419+
)
414420
else:
415421
f = bz2.BZ2File(path_or_buf, **compression_args) # type: ignore
416422

0 commit comments

Comments
 (0)