Skip to content

Commit a6a6dbf

Browse files
committed
Correct typing fix
1 parent 685e86f commit a6a6dbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8024,7 +8024,8 @@ def asof(self, where, subset=None):
80248024
np.nan, index=self.columns, name=where[0]
80258025
)
80268026

8027-
locs = self.index.asof_locs(where, ~cast("DataFrame", nulls._values))
8027+
# error: Unsupported operand type for ~ ("ExtensionArray | ndarray[Any, Any] | Any")
8028+
locs = self.index.asof_locs(where, ~nulls._values) # type: ignore[operator]
80288029

80298030
# mask the missing
80308031
mask = locs == -1

0 commit comments

Comments
 (0)