Skip to content

Commit

Permalink
Merge pull request #8464 from radarhere/imagemath_type_hint
Browse files Browse the repository at this point in the history
Added type hints to remaining ImageMath methods
  • Loading branch information
radarhere authored Oct 13, 2024
2 parents dc37515 + a60610c commit c855e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageMath.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ def __rshift__(self, other: _Operand | float) -> _Operand:
return self.apply("rshift", self, other)

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

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

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

0 comments on commit c855e8e

Please sign in to comment.