Skip to content

Commit bf4dd4a

Browse files
committed
https://github.com/pandas-dev/pandas-stubs/pull/1462/files/9409ca00bff10f24c48218f3268279ec5d33cc70#r2510949482
1 parent b8c754e commit bf4dd4a

File tree

3 files changed

+2
-42
lines changed

3 files changed

+2
-42
lines changed

pandas-stubs/core/indexes/datetimelike.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ from pandas._typing import (
1313
AxisIndex,
1414
GenericT_co,
1515
TimeUnit,
16-
np_1darray_int64,
1716
np_ndarray_complex,
1817
)
1918

@@ -63,5 +62,3 @@ class DatetimeTimedeltaMixin(DatetimeIndexOpsMixin[S1, GenericT_co]):
6362
@property
6463
def unit(self) -> TimeUnit: ...
6564
def as_unit(self, unit: TimeUnit) -> Self: ...
66-
@property
67-
def asi8(self) -> np_1darray_int64: ...

tests/indexes/test_datetime_index.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44

55
import numpy as np
66
import pandas as pd
7-
from typing_extensions import (
8-
assert_type,
9-
)
7+
from typing_extensions import assert_type
108

119
from tests import (
1210
check,
1311
np_1darray,
14-
np_1darray_int64,
1512
)
1613

1714

@@ -124,15 +121,4 @@ def test_datetimeindex_indexer_between_time() -> None:
124121

125122
def test_datetimeindex_snap() -> None:
126123
dti = pd.date_range("2023-01-01", "2023-02-01")
127-
check(
128-
assert_type(
129-
dti.snap("MS"),
130-
pd.DatetimeIndex,
131-
),
132-
pd.DatetimeIndex,
133-
)
134-
135-
136-
def test_datetimeindex_properties() -> None:
137-
dti = pd.date_range("2023-01-01", "2023-02-01")
138-
check(assert_type(dti.asi8, np_1darray_int64), np_1darray_int64, np.integer)
124+
check(assert_type(dti.snap("MS"), pd.DatetimeIndex), pd.DatetimeIndex)

tests/indexes/test_timedelta_indexes.py

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

0 commit comments

Comments
 (0)