Skip to content

Commit c36a70d

Browse files
committed
Ensure compatibility of IO type annotations
1 parent 3ece4c1 commit c36a70d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

harp/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from os import PathLike
2-
from typing import Any, Optional, Union
2+
from typing import Any, BinaryIO, Optional, Union
33
from pandas._typing import Axes
44
import numpy as np
55
import pandas as pd
@@ -19,7 +19,7 @@
1919

2020

2121
def read(
22-
file: Union[str, bytes, PathLike[Any], np._IOProtocol],
22+
file: Union[str, bytes, PathLike[Any], BinaryIO],
2323
columns: Optional[Axes] = None,
2424
):
2525
"""

0 commit comments

Comments
 (0)