Skip to content

Commit 7572894

Browse files
committed
remove undocumented methods, use *args: Any instead of undocumented axes
1 parent 6189b5c commit 7572894

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

pandas-stubs/core/arrays/sparse/array.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
from typing import Any
2-
31
import numpy as np
42
from pandas.core.arrays import (
53
ExtensionArray,
64
ExtensionOpsMixin,
75
)
8-
from typing_extensions import Self
96

107
class SparseArray(ExtensionArray, ExtensionOpsMixin):
118
def __init__(
@@ -56,7 +53,6 @@ class SparseArray(ExtensionArray, ExtensionOpsMixin):
5653
def sum(self, axis: int = ..., *args, **kwargs): ...
5754
def cumsum(self, axis: int = ..., *args, **kwargs): ...
5855
def mean(self, axis: int = ..., *args, **kwargs): ...
59-
def transpose(self, *axes: Any) -> Self: ...
6056
@property
6157
def T(self): ...
6258
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): ...

pandas-stubs/core/base.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class SelectionMixin(Generic[NDFrameT]):
4444

4545
class IndexOpsMixin(OpsMixin, Generic[S1]):
4646
__array_priority__: int = ...
47-
def transpose(self, axes: None = ...) -> Self: ...
4847
@property
4948
def T(self) -> Self: ...
5049
@property

pandas-stubs/core/frame.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
656656
show_counts: bool | None = ...,
657657
) -> None: ...
658658
def memory_usage(self, index: _bool = ..., deep: _bool = ...) -> Series: ...
659-
def transpose(self, axes: None = ..., /, copy: _bool = ...) -> Self: ...
659+
def transpose(self, *args: Any, copy: _bool = ...) -> Self: ...
660660
@property
661661
def T(self) -> Self: ...
662662
def __getattr__(self, name: str) -> Series: ...

pandas-stubs/core/series.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
15391539
bins: int | None = ...,
15401540
dropna: _bool = ...,
15411541
) -> Series[float]: ...
1542-
def transpose(self, axes: None = ...) -> Series[S1]: ...
15431542
@property
15441543
def T(self) -> Self: ...
15451544
# The rest of these were left over from the old

0 commit comments

Comments
 (0)