Skip to content

Commit 130714b

Browse files
committed
update np.double and get_slice_bounds
1 parent b9081da commit 130714b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

pandas-stubs/core/indexes/multi.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class MultiIndex(Index):
152152
def get_indexer(self, target, method=..., limit=..., tolerance=...): ...
153153
def get_indexer_non_unique(self, target): ...
154154
def reindex(self, target, method=..., level=..., limit=..., tolerance=...): ...
155-
def get_slice_bound(
155+
def get_slice_bound( # pyright: ignore[reportIncompatibleMethodOverride]
156156
self, label: Hashable | Sequence[Hashable], side: str
157157
) -> int: ...
158158
def get_loc_level(

pandas-stubs/core/series.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,16 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
342342
__index__: ClassVar[None]
343343
__hash__: ClassVar[None] # pyright: ignore[reportIncompatibleMethodOverride]
344344

345+
@overload
346+
def __new__(
347+
cls,
348+
data: AxesData,
349+
index: None = None,
350+
*,
351+
dtype: type[np.float64],
352+
name: Hashable = None,
353+
copy: bool | None = None,
354+
) -> Series[float]: ...
345355
@overload
346356
def __new__(
347357
cls,

0 commit comments

Comments
 (0)