diff --git a/gaphas/segment.py b/gaphas/segment.py index c8f3e7cc..7e82c695 100644 --- a/gaphas/segment.py +++ b/gaphas/segment.py @@ -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 @@ -23,7 +23,7 @@ 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: @@ -31,7 +31,7 @@ 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]]: ...