Skip to content

Commit

Permalink
Improve type of connect_cigar_hits
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Oct 22, 2024
1 parent 46ee051 commit 7cf2f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aligntools/cigar_hit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

from math import ceil, floor
from typing import Tuple, Iterable, Optional, List
from typing import Tuple, Iterable, Optional, List, Sequence
from dataclasses import dataclass
from functools import cached_property, reduce
from fractions import Fraction
Expand Down Expand Up @@ -396,7 +396,7 @@ def __str__(self):
% (str(self.cigar), self.q_st, self.q_ei, self.r_st, self.r_ei)


def connect_cigar_hits(cigar_hits: List[CigarHit]) -> List[CigarHit]:
def connect_cigar_hits(cigar_hits: Sequence[CigarHit]) -> List[CigarHit]:
"""
This function exists to deal with the fact that mappy does not
always connect big gaps, and returns surrounding parts as two
Expand Down

0 comments on commit 7cf2f6b

Please sign in to comment.