Skip to content

Commit b3e71e8

Browse files
committed
Update type hints to use Union in _read.py
1 parent 2c3e71d commit b3e71e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas_plink/_read.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from glob import glob
44
from os.path import basename, dirname, join
55
from pathlib import Path
6-
from typing import Callable, Optional, TypeVar
6+
from typing import Callable, Optional, TypeVar, Union
77

88
from pandas import DataFrame, read_csv
99
from xarray import DataArray
@@ -16,7 +16,7 @@
1616
__all__ = ["read_plink", "read_plink1_bin"]
1717

1818

19-
def read_plink(file_prefix: str | Path, verbose=True):
19+
def read_plink(file_prefix: Union[str, Path], verbose=True):
2020
"""
2121
Read PLINK files into data frames.
2222
@@ -165,7 +165,7 @@ def read_plink(file_prefix: str | Path, verbose=True):
165165

166166

167167
def read_plink1_bin(
168-
bed: str | Path,
168+
bed: Union[str, Path],
169169
bim: Optional[str] = None,
170170
fam: Optional[str] = None,
171171
verbose: bool = True,

0 commit comments

Comments
 (0)