Skip to content

Commit

Permalink
fix tuple type annotations for python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
willdumm committed Nov 12, 2024
1 parent aab2b78 commit 14adaa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netam/multihit.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from torch.utils.data import Dataset
from tqdm import tqdm
import pandas as pd
from typing import Sequence, List
from typing import Sequence, List, Tuple

from netam.molevol import (
reshape_for_codons,
Expand Down Expand Up @@ -452,7 +452,7 @@ def hit_class_dataset_from_pcp_df(

def train_test_datasets_of_pcp_df(
pcp_df: pd.DataFrame, train_frac: float = 0.8, branch_length_multiplier: float = 1.0
) -> tuple[HitClassDataset, HitClassDataset]:
) -> Tuple[HitClassDataset, HitClassDataset]:
"""Splits a pcp_df prepared by `prepare_pcp_df` into a training and testing
HitClassDataset."""
nt_parents = pcp_df["parent"].reset_index(drop=True)
Expand Down

0 comments on commit 14adaa4

Please sign in to comment.