Skip to content

Commit b9af83a

Browse files
committed
https://github.com/pandas-dev/pandas-stubs/pull/1462#discussion_r2490866323
1 parent 1cfd06e commit b9af83a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas-stubs/_libs/interval.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ from pandas._typing import (
1919
IntervalClosedType,
2020
IntervalT,
2121
np_1darray,
22+
np_ndarray,
2223
)
2324

2425
VALID_CLOSED: frozenset[str]
@@ -37,6 +38,7 @@ class _LengthDescriptor:
3738
def __get__(
3839
self, instance: Interval[_OrderableTimesT], owner: Any
3940
) -> Timedelta: ...
41+
def __get__(self, instance: IntervalMixin, owner: Any) -> np_ndarray: ...
4042

4143
@type_check_only
4244
class _MidDescriptor:
@@ -46,6 +48,7 @@ class _MidDescriptor:
4648
def __get__(
4749
self, instance: Interval[_OrderableTimesT], owner: Any
4850
) -> _OrderableTimesT: ...
51+
def __get__(self, instance: IntervalMixin, owner: Any) -> np_ndarray: ...
4952

5053
class IntervalMixin:
5154
@property
@@ -220,5 +223,3 @@ class Interval(IntervalMixin, Generic[_OrderableT]):
220223
def __ne__(self, other: Series[_OrderableT]) -> Series[bool]: ... # type: ignore[overload-overlap]
221224
@overload
222225
def __ne__(self, other: object) -> Literal[True]: ...
223-
224-
class IntervalTree(IntervalMixin): ...

0 commit comments

Comments
 (0)