Skip to content

Commit d33e8db

Browse files
committed
splicing: Fix typing issue
1 parent bb5b353 commit d33e8db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/geneml/splicing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import logging
22

3-
from geneml.types import SplicingType, Transcript
3+
from geneml.types import Exon, SplicingType, Transcript
44

55
logger = logging.getLogger("geneml")
66

7-
def get_ordered_introns(exons: list, strand: int) -> list[tuple[int,int]]:
7+
def get_ordered_introns(exons: list[Exon] | tuple[Exon, ...], strand: int) -> list[tuple[int,int]]:
88
"""
99
Returns introns (donor, acceptor) in transcriptional order.
1010
1111
Args:
12-
exons: list of Exon objects, sorted by genomic position.
12+
exons: List or tuple of Exon objects, sorted by genomic position.
1313
strand: +1 for forward strand, -1 for reverse strand.
1414
1515
Returns:

0 commit comments

Comments
 (0)