Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions tests/indexes/test_datetime_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ def test_index_relops() -> None:
check(assert_type(data[idx >= x], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[idx > x], pd.DatetimeIndex), pd.DatetimeIndex)

# TODO: https://github.com/pandas-dev/pandas-stubs/pull/1438#discussion_r2451864012
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @harshasiddartha, since you are deleting some tests can you point out where the other tests are so we make sure that we maintain a good test coverage on the project? Thanks!

# Can this be de-duplicated?
dt_idx = pd.DatetimeIndex(data, name="date")
check(assert_type(data[x <= dt_idx], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[x < dt_idx], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[x >= dt_idx], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[x > dt_idx], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[dt_idx <= x], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[dt_idx < x], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[dt_idx >= x], pd.DatetimeIndex), pd.DatetimeIndex)
check(assert_type(data[dt_idx > x], pd.DatetimeIndex), pd.DatetimeIndex)

ind = pd.Index([1, 2, 3])
check(assert_type(ind <= 2, np_1darray[np.bool]), np_1darray[np.bool])
check(assert_type(ind < 2, np_1darray[np.bool]), np_1darray[np.bool])
Expand Down