Skip to content

Commit

Permalink
Make lazyintervaltree compatible with Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn-gt committed Aug 2, 2024
1 parent 79372d7 commit 4f4cd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/gtirb/lazyintervaltree.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
Iterator,
List,
Optional,
Protocol,
Tuple,
TypeVar,
)

from intervaltree import Interval, IntervalTree
from typing_extensions import Protocol

_K = TypeVar("_K")
_Kco = TypeVar("_Kco", covariant=True)
Expand All @@ -43,7 +43,7 @@ class IntervalBuilder(Protocol[_Kco, _V]):
If no interval is available for a particular value, returns None instead.
"""

def __call__(self, value: _V, /) -> Optional["Interval[_Kco, _V]"]:
def __call__(self, node: _V) -> Optional["Interval[_Kco, _V]"]:
...


Expand Down

0 comments on commit 4f4cd68

Please sign in to comment.