Skip to content

Commit bccc217

Browse files
committed
1 parent b0060a3 commit bccc217

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pyarrow-stubs/lib.pyi

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# ruff: noqa: F403
22
import sys
33

4-
from typing import Any, Final, Literal, Sequence, final
4+
from typing import Any, Final, Literal, Sequence, final, overload
55

6-
from _typeshed import SupportsAdd, SupportsAllComparisons, SupportsMul, SupportsRMul
6+
from _typeshed import SupportsAdd, SupportsAllComparisons
77

88
if sys.version_info >= (3, 11):
99
from typing import Self
@@ -31,8 +31,6 @@ class MonthDayNano(
3131
Sequence[int],
3232
SupportsAdd[Sequence[int], Sequence[int]],
3333
SupportsAllComparisons,
34-
SupportsMul[int, Sequence[int]],
35-
SupportsRMul[int, Sequence[int]],
3634
):
3735
n_fields: Final[Literal[3]]
3836
n_unnamed_fields: Final[Literal[0]]
@@ -45,6 +43,11 @@ class MonthDayNano(
4543
def days(self) -> int: ...
4644
@property
4745
def nanoseconds(self) -> int: ...
46+
@overload
47+
def __getitem__(self, index: int) -> int: ...
48+
@overload
49+
def __getitem__(self, index: slice) -> Sequence[int]: ...
50+
def __len__(self) -> int: ...
4851
def __new__(cls, iterable: tuple[int, int, int], /) -> Self: ...
4952
if sys.version_info >= (3, 13):
5053
def __replace__(self, **kwargs: Any) -> Self: ...

0 commit comments

Comments
 (0)