We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3e71d commit b3e71e8Copy full SHA for b3e71e8
pandas_plink/_read.py
@@ -3,7 +3,7 @@
3
from glob import glob
4
from os.path import basename, dirname, join
5
from pathlib import Path
6
-from typing import Callable, Optional, TypeVar
+from typing import Callable, Optional, TypeVar, Union
7
8
from pandas import DataFrame, read_csv
9
from xarray import DataArray
@@ -16,7 +16,7 @@
16
__all__ = ["read_plink", "read_plink1_bin"]
17
18
19
-def read_plink(file_prefix: str | Path, verbose=True):
+def read_plink(file_prefix: Union[str, Path], verbose=True):
20
"""
21
Read PLINK files into data frames.
22
@@ -165,7 +165,7 @@ def read_plink(file_prefix: str | Path, verbose=True):
165
166
167
def read_plink1_bin(
168
- bed: str | Path,
+ bed: Union[str, Path],
169
bim: Optional[str] = None,
170
fam: Optional[str] = None,
171
verbose: bool = True,
0 commit comments