diff --git a/llvmlite/ir/types.py b/llvmlite/ir/types.py index f4b624dc2..8dc7d959c 100644 --- a/llvmlite/ir/types.py +++ b/llvmlite/ir/types.py @@ -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) @@ -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)