Skip to content

Commit

Permalink
Update type hints to use Union in _read.py
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Jun 18, 2024
1 parent 2c3e71d commit b3e71e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas_plink/_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from glob import glob
from os.path import basename, dirname, join
from pathlib import Path
from typing import Callable, Optional, TypeVar
from typing import Callable, Optional, TypeVar, Union

from pandas import DataFrame, read_csv
from xarray import DataArray
Expand All @@ -16,7 +16,7 @@
__all__ = ["read_plink", "read_plink1_bin"]


def read_plink(file_prefix: str | Path, verbose=True):
def read_plink(file_prefix: Union[str, Path], verbose=True):
"""
Read PLINK files into data frames.
Expand Down Expand Up @@ -165,7 +165,7 @@ def read_plink(file_prefix: str | Path, verbose=True):


def read_plink1_bin(
bed: str | Path,
bed: Union[str, Path],
bim: Optional[str] = None,
fam: Optional[str] = None,
verbose: bool = True,
Expand Down

0 comments on commit b3e71e8

Please sign in to comment.