diff --git a/src/ontogpt/cli.py b/src/ontogpt/cli.py index 19d8a2bf4..b8a74b8d2 100644 --- a/src/ontogpt/cli.py +++ b/src/ontogpt/cli.py @@ -160,8 +160,10 @@ def write_extraction( def parse_input( - input: str, use_pdf: bool = False, return_dict: bool = False, selectcols: List[str] = [] + input: str, use_pdf: bool = False, return_dict: bool = False, selectcols: Optional[List[str]] = None ) -> Union[list, Dict[str, str]]: + if selectcols is None: + selectcols = [] """Parse input argument to use as one or more input texts.""" if use_pdf: logging.info("Will parse input as PDF.")