Skip to content

Commit e448246

Browse files
committed
PrettyDict
1 parent bc18e49 commit e448246

File tree

6 files changed

+0
-81
lines changed

6 files changed

+0
-81
lines changed

pandas-stubs/core/arrays/datetimelike.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ from pandas._typing import (
2525
TimeNonexistent,
2626
TimeUnit,
2727
np_1darray,
28-
np_1darray_int64,
2928
)
3029

3130
DTScalarOrNaT: TypeAlias = DatetimeLikeScalar | NaTType
@@ -65,8 +64,6 @@ class DatetimeLikeArrayMixin(ExtensionOpsMixin, ExtensionArray):
6564
def ravel(self, *args: Any, **kwargs: Any): ...
6665
def __iter__(self): ...
6766
@property
68-
def asi8(self) -> np_1darray_int64: ...
69-
@property
7067
def nbytes(self): ...
7168
def __array__(
7269
self, dtype: NpDtype | None = None, copy: bool | None = None

pandas-stubs/core/construction.pyi

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
11
from collections.abc import Sequence
2-
from datetime import (
3-
datetime,
4-
timedelta,
5-
)
62
from typing import overload
73

84
import numpy as np
95
from pandas.core.arrays.base import ExtensionArray
10-
from pandas.core.arrays.datetimes import DatetimeArray
116
from pandas.core.arrays.integer import IntegerArray
12-
from pandas.core.arrays.timedeltas import TimedeltaArray
137

148
from pandas._libs.missing import NAType
159
from pandas._typing import (
1610
IntDtypeArg,
17-
TimedeltaDtypeArg,
18-
TimestampDtypeArg,
1911
UIntDtypeArg,
2012
)
2113

2214
from pandas.core.dtypes.dtypes import ExtensionDtype
2315

24-
@overload
25-
def array( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
26-
data: Sequence[timedelta | NAType],
27-
dtype: TimedeltaDtypeArg | None = None,
28-
copy: bool = True,
29-
) -> TimedeltaArray: ...
30-
@overload
31-
def array( # type: ignore[overload-overlap]
32-
data: Sequence[datetime | NAType],
33-
dtype: TimestampDtypeArg | None = None,
34-
copy: bool = True,
35-
) -> DatetimeArray: ...
3616
@overload
3717
def array(
3818
data: Sequence[int | NAType],

pandas-stubs/core/indexes/base.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ from pandas._typing import (
107107
type_t,
108108
)
109109

110-
from pandas.io.formats.printing import PrettyDict
111-
112110
class InvalidIndexError(Exception): ...
113111

114112
class Index(IndexOpsMixin[S1], ElementOpsMixin[S1]):
@@ -523,8 +521,6 @@ class Index(IndexOpsMixin[S1], ElementOpsMixin[S1]):
523521
def get_indexer_non_unique(self, target): ...
524522
@final
525523
def get_indexer_for(self, target, **kwargs: Any): ...
526-
@final
527-
def groupby(self, values) -> PrettyDict[Hashable, Self]: ...
528524
def map(self, mapper, na_action=...) -> Index: ...
529525
def isin(self, values, level=...) -> np_1darray[np.bool]: ...
530526
def slice_indexer(

pandas-stubs/io/formats/printing.pyi

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

tests/arrays/test_datetime_arrays.py

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

tests/arrays/test_timedelta_arrays.py

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

0 commit comments

Comments
 (0)