Skip to content

Commit fdda5a6

Browse files
authored
Delete undocumented functions (#1254)
* delete undocumented functions * delete empty files, revert unchanged files * format * clean up tests for deleted functions * precommit * delete some more functions/files per commetns * restore scopes.pyi * add back arrow/dtype and expr
1 parent 5532e9e commit fdda5a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+249
-490
lines changed

pandas-stubs/_libs/ops_dispatch.pyi

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
from datetime import datetime
2-
3-
def localize_pydatetime(dt: datetime, tz: object) -> datetime: ...
4-
51
class OutOfBoundsTimedelta(ValueError): ...

pandas-stubs/_libs/tslibs/parsing.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
from typing import Any
2-
3-
def parse_time_string(*args, **kwargs) -> Any: ...
4-
51
class DateParseError(ValueError):
62
def __init__(self, *args, **kwargs) -> None: ...

pandas-stubs/_libs/tslibs/strptime.pyi

Lines changed: 0 additions & 3 deletions
This file was deleted.

pandas-stubs/_version.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ from typing import Literal
22

33
version_json: str = ...
44

5-
def get_versions(): ...
6-
75
_stub_version: Literal["2.2.3.250527"]

pandas-stubs/api/types/__init__.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ from pandas._libs.lib import infer_dtype as infer_dtype
22

33
from pandas.core.dtypes.api import (
44
is_any_real_numeric_dtype as is_any_real_numeric_dtype,
5-
is_array_like as is_array_like,
65
is_bool as is_bool,
76
is_bool_dtype as is_bool_dtype,
87
is_complex as is_complex,

pandas-stubs/core/arraylike.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ from typing import Any
22

33
from typing_extensions import Self
44

5-
from pandas._libs.ops_dispatch import (
6-
maybe_dispatch_ufunc_to_dunder_op as maybe_dispatch_ufunc_to_dunder_op,
7-
)
8-
95
class OpsMixin:
106
def __eq__(self, other: object) -> Self: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
117
def __ne__(self, other: object) -> Self: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import pyarrow as pa
2-
3-
from pandas._libs.missing import NAType
4-
5-
from pandas.core.dtypes.base import StorageExtensionDtype
6-
7-
class ArrowDtype(StorageExtensionDtype):
8-
pyarrow_dtype: pa.DataType
9-
def __init__(self, pyarrow_dtype: pa.DataType) -> None: ...
10-
@property
11-
def na_value(self) -> NAType: ...
1+
import pyarrow as pa
2+
3+
from pandas._libs.missing import NAType
4+
5+
from pandas.core.dtypes.base import StorageExtensionDtype
6+
7+
class ArrowDtype(StorageExtensionDtype):
8+
pyarrow_dtype: pa.DataType
9+
def __init__(self, pyarrow_dtype: pa.DataType) -> None: ...
10+
@property
11+
def na_value(self) -> NAType: ...

pandas-stubs/core/arrays/boolean.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ class BooleanDtype(ExtensionDtype):
1212
@classmethod
1313
def construct_array_type(cls) -> type_t[BooleanArray]: ...
1414

15-
def coerce_to_array(values, mask=..., copy: bool = ...): ...
16-
1715
class BooleanArray(BaseMaskedArray):
1816
def __init__(
1917
self, values: np.ndarray, mask: np.ndarray, copy: bool = ...

pandas-stubs/core/arrays/categorical.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,3 @@ class CategoricalAccessor(PandasDelegate, NoNewAttributesMixin):
157157
) -> Series: ...
158158
def as_ordered(self) -> Series: ...
159159
def as_unordered(self) -> Series: ...
160-
161-
def factorize_from_iterable(values): ...
162-
def factorize_from_iterables(iterables): ...

0 commit comments

Comments
 (0)