Skip to content

Commit

Permalink
Fixed type hinting in preprocessing_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclynbeck-sage committed Dec 18, 2024
1 parent 361a8bb commit 64d2cef
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def _extract_ensembl_ids(

def load_file_with_name(
file_name: str, config_filename: str, token: str = None
) -> pd.DataFrame:
) -> Union[pd.DataFrame, None]:
"""
Loops through a config file, finds the input file config that matches file_name, and downloads
and reads the file in as a pandas data frame.
Expand All @@ -350,7 +350,8 @@ def load_file_with_name(
token: optional, a Synapse auth token
Returns:
a pandas.DataFrame, if a file matching file_name exists in the config, or None
a pandas.DataFrame, if a file matching file_name exists in the config, or
None, if no file spec with that name exists
"""
syn = utils._login_to_synapse(token=token)
config = utils._get_config(config_path=config_filename)
Expand Down

0 comments on commit 64d2cef

Please sign in to comment.