Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: one line less
  • Loading branch information
cmp0xff committed Sep 29, 2025
commit 245315c404d1319ff5246f8a6dee8d31c8b1e19f
3 changes: 1 addition & 2 deletions tests/series/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3524,9 +3524,8 @@ def _diff_invalid0(): # pyright: ignore[reportUnusedFunction]
assert_type(pd.Series([pd.Interval(0, 2), pd.Interval(1, 4)]).diff(), Never)

def _diff_invalid1() -> None: # pyright: ignore[reportUnusedFunction]
s = pd.Series([1, 1, 2, 3, 5, 8])
# bytes -> numpy.core._exceptions._UFuncNoLoopError: ufunc 'subtract' did not contain a loop with signature matching types (dtype('S21'), dtype('S21')) -> None
s.astype(bytes).diff() # type: ignore[misc] # pyright: ignore[reportAttributeAccessIssue]
pd.Series([1, 1, 2, 3, 5, 8]).astype(bytes).diff() # type: ignore[misc] # pyright: ignore[reportAttributeAccessIssue]

def _diff_invalid2() -> None: # pyright: ignore[reportUnusedFunction]
# dtype -> TypeError: unsupported operand type(s) for -: 'type' and 'type'
Expand Down
Loading