Skip to content

Commit

Permalink
Added type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 12, 2024
1 parent a5c58f2 commit a60610c
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 a60610c

Please sign in to comment.