Skip to content

Commit

Permalink
Update pyright (#1024)
Browse files Browse the repository at this point in the history
* Update pyright

* ignore
  • Loading branch information
hauntsaninja authored Oct 30, 2024
1 parent f71224c commit 0de109b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pandas-stubs/core/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,9 @@ class DataFrame(NDFrame, OpsMixin):
@overload
def __getitem__(self, key: Scalar | tuple[Hashable, ...]) -> Series: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
@overload
def __getitem__(self, key: Iterable[Hashable] | slice) -> DataFrame: ...
def __getitem__( # pyright: ignore[reportOverlappingOverload]
self, key: Iterable[Hashable] | slice
) -> DataFrame: ...
@overload
def __getitem__(self, key: Hashable) -> Series: ...
def isetitem(
Expand Down
2 changes: 1 addition & 1 deletion pandas-stubs/core/groupby/generic.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT]):
self, key: Scalar | Hashable | tuple[Hashable, ...]
) -> SeriesGroupBy[Any, ByT]: ...
@overload
def __getitem__( # pyright: ignore[reportIncompatibleMethodOverride]
def __getitem__( # pyright: ignore[reportIncompatibleMethodOverride, reportOverlappingOverload]
self, key: Iterable[Hashable] | slice
) -> DataFrameGroupBy[ByT]: ...
def nunique(self, dropna: bool = ...) -> DataFrame: ...
Expand Down
2 changes: 1 addition & 1 deletion pandas-stubs/core/groupby/groupby.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class BaseGroupBy(SelectionMixin[NDFrameT], GroupByIndexingMixin):
@overload
def __getitem__(self: BaseGroupBy[DataFrame], key: Scalar | Hashable | tuple[Hashable, ...]) -> generic.SeriesGroupBy: ... # type: ignore[overload-overlap]
@overload
def __getitem__(
def __getitem__( # pyright: ignore[reportOverlappingOverload]
self: BaseGroupBy[DataFrame], key: Iterable[Hashable] | slice
) -> generic.DataFrameGroupBy: ...
@overload
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mypy = "1.10.1"
pandas = "2.2.3"
pyarrow = ">=10.0.1"
pytest = ">=7.1.2"
pyright = ">= 1.1.383"
pyright = ">= 1.1.387"
poethepoet = ">=0.16.5"
loguru = ">=0.6.0"
typing-extensions = ">=4.4.0"
Expand Down

0 comments on commit 0de109b

Please sign in to comment.