Skip to content

Commit 54ce0a2

Browse files
authored
Merge pull request #18 from ofsouzap/my-typing-fixes
Correct typing fixes
2 parents 685e86f + 4f838b6 commit 54ce0a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8024,7 +8024,9 @@ 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
8028+
# ~ ("ExtensionArray | ndarray[Any, Any] | Any")
8029+
locs = self.index.asof_locs(where, ~nulls._values) # type: ignore[operator]
80288030

80298031
# mask the missing
80308032
mask = locs == -1

0 commit comments

Comments
 (0)