Skip to content

Commit

Permalink
Fix Bio.Align.PairwiseAlignment annotation
Browse files Browse the repository at this point in the history
Was removed in Biopython 1.82
  • Loading branch information
speleo3 committed Mar 19, 2024
1 parent 438a07c commit 95fbdc8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions psico/seqalign.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
import Bio
from Bio.SeqIO import _FormatToIterator
from pymol import CmdException
from typing import Iterator, Optional, Tuple, Union
from typing import TYPE_CHECKING, Iterator, Optional, Tuple, Union

if TYPE_CHECKING:
import Bio.Align

_PathArg = Union[os.PathLike, str]

Expand Down Expand Up @@ -47,7 +50,7 @@ def _get_aligner_BLOSUM62() -> "Bio.Align.PairwiseAligner":


def _msa_from_pairwise(
pairwise: "Bio.Align.PairwiseAlignment",
pairwise: "Bio.Align.Alignment",
biopython_version: tuple = (1, 81),
) -> "Bio.Align.MultipleSeqAlignment":
from Bio.Align import MultipleSeqAlignment
Expand Down

0 comments on commit 95fbdc8

Please sign in to comment.