Skip to content

Commit 60a0ff9

Browse files
committed
stubtest inconsistencies
1 parent 7c38e4d commit 60a0ff9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pandas-stubs/_libs/tslibs/timestamps.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Timestamp(datetime):
7777
cls: type[_DatetimeT], t: float, tz: _tzinfo | None = ...
7878
) -> _DatetimeT: ...
7979
@classmethod
80-
def utcfromtimestamp(cls: type[_DatetimeT], t: float) -> _DatetimeT: ...
80+
def utcfromtimestamp(cls: type[_DatetimeT], ts: float) -> _DatetimeT: ...
8181
@classmethod
8282
def today(cls: type[_DatetimeT], tz: _tzinfo | str | None = ...) -> _DatetimeT: ...
8383
@classmethod

pandas-stubs/_testing/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def assert_series_equal(
6060
check_dtype: bool = ...,
6161
check_index_type: bool | str = ...,
6262
check_series_type: bool = ...,
63+
check_less_precise: bool | int = ...,
6364
check_names: bool = ...,
6465
check_exact: bool = ...,
6566
check_datetimelike_compat: bool = ...,

pandas-stubs/core/indexes/timedeltas.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class TimedeltaIndex(DatetimeTimedeltaMixin, TimedeltaIndexProperties):
3434
def __truediv__(self, other: num) -> TimedeltaIndex: ... # type: ignore[override]
3535
def astype(self, dtype, copy: bool = ...): ...
3636
def get_value(self, series, key): ...
37-
def get_loc(self, key, tolerance=...): ...
37+
def get_loc(self, key, method=..., tolerance=...): ...
3838
def searchsorted(self, value, side: str = ..., sorter=...): ...
39-
def is_type_compatible(self, typ) -> bool: ...
39+
def is_type_compatible(self, kind: str) -> bool: ...
4040
@property
4141
def inferred_type(self) -> str: ...
4242
def insert(self, loc, item): ...

0 commit comments

Comments
 (0)