From f36f24e8fa8330851e7071f963cf6ffce17536a1 Mon Sep 17 00:00:00 2001 From: Thomas Sell Date: Tue, 31 Oct 2023 17:23:20 +0100 Subject: [PATCH] add Path to input type hints --- altamisa/isatab/modify_investigation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/altamisa/isatab/modify_investigation.py b/altamisa/isatab/modify_investigation.py index 677ad19..b7be0ba 100644 --- a/altamisa/isatab/modify_investigation.py +++ b/altamisa/isatab/modify_investigation.py @@ -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: @@ -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.