You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if both the range value type and mapped value type could be annotated with type annotations, e.g.:
@dataclass
class Foo:
a: int
b: str
tree = IntervalTree[int, Foo]()
tree[2, 5] = Foo(123, 'test')
# linter should raise type error:
tree[1.4, 2.3] = Foo(123, 'test')
# linter should raise type error:
tree[2, 5] = 'invalid value type'
Jeremiah-England, MatrixManAtYrService, Lubba-64, jfschaefer, iainelder and 4 more