Skip to content

Commit

Permalink
Fix typing for Py 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Oct 31, 2021
1 parent a498252 commit 32c2da1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gaphas/segment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Allow for easily adding segments to lines."""
from functools import singledispatch
from typing import Optional, Sequence
from typing import Optional, Sequence, Tuple

from cairo import ANTIALIAS_NONE
from gi.repository import Gtk
Expand All @@ -23,15 +23,15 @@ def __init__(self, item, model):

def split_segment(
self, segment: int, count: int = 2
) -> tuple[Sequence[Handle], Sequence[Port]]:
) -> Tuple[Sequence[Handle], Sequence[Port]]:
...

def split(self, pos: Point) -> Handle:
...

def merge_segment(
self, segment: int, count: int = 2
) -> tuple[Sequence[Handle], Sequence[Port]]:
) -> Tuple[Sequence[Handle], Sequence[Port]]:
...


Expand Down

0 comments on commit 32c2da1

Please sign in to comment.