Skip to content

Commit a60610c

Browse files
committed
Added type hints
1 parent a5c58f2 commit a60610c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PIL/ImageMath.py

Lines changed: 2 additions & 2 deletions
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)