From 667dac7e5e2ae7efffbf2075b103e0ad90c7669d Mon Sep 17 00:00:00 2001 From: Graham Markall Date: Wed, 5 Mar 2025 17:46:03 +0000 Subject: [PATCH] Fix flake8 --- llvmlite/ir/types.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)