Skip to content

Commit 245315c

Browse files
committed
chore: one line less
1 parent aef9fb7 commit 245315c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/series/test_series.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3524,9 +3524,8 @@ def _diff_invalid0(): # pyright: ignore[reportUnusedFunction]
35243524
assert_type(pd.Series([pd.Interval(0, 2), pd.Interval(1, 4)]).diff(), Never)
35253525

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

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

0 commit comments

Comments
 (0)