Skip to content

Commit

Permalink
chore: adding some ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcampbell committed Mar 8, 2024
1 parent a555efa commit 6ac1fe5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/puyapy_mocks/_primatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class UInt64:
def __init__(self, value: int, /) -> None:
self.__match_value__ = value

def __eq__(self, other: UInt64 | int) -> bool:
def __eq__(self, other: UInt64 | int) -> bool: # type: ignore[override]
if isinstance(other, UInt64):
return self.__match_value__ == other.__match_value__
elif isinstance(other, int):
return self.__match_value__ == other
else:
return NotImplemented

def __ne__(self, other: UInt64 | int) -> bool:
def __ne__(self, other: UInt64 | int) -> bool: # type: ignore[override]
if isinstance(other, UInt64):
return self.__match_value__ != other.__match_value__
elif isinstance(other, int):
Expand Down Expand Up @@ -74,7 +74,7 @@ def __radd__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __iadd__(self, other: UInt64 | int) -> UInt64:
def __iadd__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ += other.__match_value__
elif isinstance(other, int):
Expand All @@ -97,7 +97,7 @@ def __rsub__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __isub__(self, other: UInt64 | int) -> UInt64:
def __isub__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ -= other.__match_value__
elif isinstance(other, int):
Expand All @@ -120,7 +120,7 @@ def __rmul__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __imul__(self, other: UInt64 | int) -> UInt64:
def __imul__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ *= other.__match_value__
elif isinstance(other, int):
Expand All @@ -143,7 +143,7 @@ def __rfloordiv__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __ifloordiv__(self, other: UInt64 | int) -> UInt64:
def __ifloordiv__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ //= other.__match_value__
elif isinstance(other, int):
Expand All @@ -166,7 +166,7 @@ def __rmod__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __imod__(self, other: UInt64 | int) -> UInt64:
def __imod__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ %= other.__match_value__
elif isinstance(other, int):
Expand All @@ -189,7 +189,7 @@ def __rpow__(self, power: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __ipow__(self, power: UInt64 | int) -> UInt64:
def __ipow__(self, power: UInt64 | int) -> UInt64: # noqa: PYI034, PYI034
if isinstance(power, UInt64):
self.__match_value__ **= power.__match_value__
elif isinstance(power, int):
Expand All @@ -212,7 +212,7 @@ def __rlshift__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __ilshift__(self, other: UInt64 | int) -> UInt64:
def __ilshift__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ <<= other.__match_value__
elif isinstance(other, int):
Expand All @@ -235,7 +235,7 @@ def __rrshift__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __irshift__(self, other: UInt64 | int) -> UInt64:
def __irshift__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ >>= other.__match_value__
elif isinstance(other, int):
Expand All @@ -258,7 +258,7 @@ def __rand__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __iand__(self, other: UInt64 | int) -> UInt64:
def __iand__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ &= other.__match_value__
elif isinstance(other, int):
Expand All @@ -281,7 +281,7 @@ def __rxor__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __ixor__(self, other: UInt64 | int) -> UInt64:
def __ixor__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ ^= other.__match_value__
elif isinstance(other, int):
Expand All @@ -304,7 +304,7 @@ def __ror__(self, other: UInt64 | int) -> UInt64:
else:
return NotImplemented

def __ior__(self, other: UInt64 | int) -> UInt64:
def __ior__(self, other: UInt64 | int) -> UInt64: # noqa: PYI034
if isinstance(other, UInt64):
self.__match_value__ |= other.__match_value__
elif isinstance(other, int):
Expand Down Expand Up @@ -360,7 +360,7 @@ def __add__(self, other: Bytes | bytes) -> Bytes:
other = Bytes(other)
return Bytes(self.__match_value__ + bytes(other))

def __eq__(self, other: Bytes | bytes) -> bool:
def __eq__(self, other: Bytes | bytes) -> bool: # type: ignore[override]
return self.__match_value__ == bytes(other)

def __int__(self) -> int:
Expand Down

0 comments on commit 6ac1fe5

Please sign in to comment.