Skip to content

Commit

Permalink
switch to using 3.9 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssadai committed Oct 1, 2024
1 parent aae4b39 commit 8e95027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bagel/file_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
from pathlib import Path
from typing import Optional

import pandas as pd
import typer
Expand All @@ -17,7 +18,7 @@ def file_encoding_error_message(input_p: Path) -> str:

def load_tabular(
input_p: Path, input_type: str = "phenotypic"
) -> pd.DataFrame | None:
) -> Optional[pd.DataFrame]:
"""Load a .tsv pheno file and do some basic validation."""
if input_p.suffix == ".tsv":
try:
Expand Down

0 comments on commit 8e95027

Please sign in to comment.