Skip to content

Commit

Permalink
fix typing syntax to be compatible with python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Feb 5, 2024
1 parent cf75eb8 commit 7deba11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pydna/dseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
from Bio.Restriction import RestrictionBatch as _RestrictionBatch
from Bio.Restriction import CommOnly

from typing import Tuple


class Dseq(_Seq):
"""Dseq holds information for a double stranded DNA fragment.
Expand Down Expand Up @@ -1559,7 +1561,7 @@ def get_cutsites(self, *enzymes):

return sorted([cutsite for cutsite in out if self.cutsite_is_valid(cutsite)])

def left_end_position(self) -> tuple[int, int]:
def left_end_position(self) -> Tuple[int, int]:
"""The index in the full sequence of the watson and crick start positions.
full sequence (str(self)) for all three cases is AAA
Expand All @@ -1575,7 +1577,7 @@ def left_end_position(self) -> tuple[int, int]:
return self.ovhg, 0
return 0, -self.ovhg

def right_end_position(self) -> tuple[int, int]:
def right_end_position(self) -> Tuple[int, int]:
"""The index in the full sequence of the watson and crick end positions.
full sequence (str(self)) for all three cases is AAA
Expand Down

0 comments on commit 7deba11

Please sign in to comment.