Skip to content

Commit e511483

Browse files
committed
remove unused ignore
1 parent 3c6c84a commit e511483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/fabric/utilities/spike.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def _check_rtol(self, val_a: Union[float, torch.Tensor], val_b: Union[float, tor
133133

134134
def _is_better(self, diff_val: torch.Tensor) -> bool:
135135
if self.mode == "min":
136-
return bool((diff_val <= 0.0).all()) # type: ignore[operator]
136+
return bool((diff_val <= 0.0).all())
137137
if self.mode == "max":
138-
return bool((diff_val >= 0).all()) # type: ignore[operator]
138+
return bool((diff_val >= 0).all())
139139

140140
raise ValueError(f"Invalid mode. Has to be min or max, found {self.mode}")
141141

0 commit comments

Comments
 (0)