Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Mar 5, 2025
1 parent d674d17 commit 667dac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvmlite/ir/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def _to_string(self):
return "ptr"

def __eq__(self, other):
return isinstance(other, PointerType) and \
self.addrspace == other.addrspace
return (isinstance(other, PointerType) and
self.addrspace == other.addrspace)

def __hash__(self):
return hash(PointerType)
Expand Down Expand Up @@ -181,8 +181,8 @@ def __eq__(self, other):
if isinstance(other, _TypedPointerType):
return (self.pointee, self.addrspace) == (other.pointee,
other.addrspace)
return isinstance(other, PointerType) and \
self.addrspace == other.addrspace
return (isinstance(other, PointerType) and
self.addrspace == other.addrspace)

def __hash__(self):
return hash(_TypedPointerType)
Expand Down

0 comments on commit 667dac7

Please sign in to comment.