Skip to content

Commit

Permalink
add Path to input type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Oct 31, 2023
1 parent 8347193 commit f36f24e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions altamisa/isatab/modify_investigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ class InvestigationForge:
"""
Provides methods to add assays to an existing investigation.
:type input_path: str
:type input_path: str | Path
:param input_path: Location of investigation to modify.
"""

def __init__(self, input_path: str):
def __init__(self, input_path: str | Path):
i_file = Path(input_path).expanduser().resolve()

with i_file.open("rt") as f:
Expand Down Expand Up @@ -49,11 +49,11 @@ def _join_protocols(x: dict, y: dict) -> dict:
)
return x

def add_assay(self, input_path: str):
def add_assay(self, input_path: str | Path):
"""
Add assay to investigation file.
:type input_path: str
:type input_path: str | Path
:param input_path: Location of investigation to modify.
:rtype: models.InvestigationInfo
:returns: Investigation model including all information from the investigation file.
Expand Down

0 comments on commit f36f24e

Please sign in to comment.