Skip to content

Commit c855e8e

Browse files
authored
Merge pull request #8464 from radarhere/imagemath_type_hint
Added type hints to remaining ImageMath methods
2 parents dc37515 + a60610c commit c855e8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/PIL/ImageMath.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ def __rshift__(self, other: _Operand | float) -> _Operand:
173173
return self.apply("rshift", self, other)
174174

175175
# logical
176-
def __eq__(self, other):
176+
def __eq__(self, other: _Operand | float) -> _Operand: # type: ignore[override]
177177
return self.apply("eq", self, other)
178178

179-
def __ne__(self, other):
179+
def __ne__(self, other: _Operand | float) -> _Operand: # type: ignore[override]
180180
return self.apply("ne", self, other)
181181

182182
def __lt__(self, other: _Operand | float) -> _Operand:

0 commit comments

Comments
 (0)