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'
The text was updated successfully, but these errors were encountered:
I created these type stubs while in a clone of the original repo. I do not recall how or if I set it up for production, I ended up with a custom solution to replace this library anyways since my use case was different.
It would be great if both the range value type and mapped value type could be annotated with type annotations, e.g.:
The text was updated successfully, but these errors were encountered: