From 7171826bbb9147e4dd9104c6b98dabb3ade4afb5 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Fri, 8 Sep 2023 15:08:04 -0700 Subject: [PATCH] flake8 fix --- modules/mmcif/pyext/src/data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/mmcif/pyext/src/data.py b/modules/mmcif/pyext/src/data.py index 6634708b6b..bd74b1113c 100644 --- a/modules/mmcif/pyext/src/data.py +++ b/modules/mmcif/pyext/src/data.py @@ -720,8 +720,9 @@ def add(self, rep): # we generally don't have more than one or two representations. for existing in self.system.orphan_representations: if (len(existing) == len(rep) - and all(type(x) == type(y) and x.__dict__ == y.__dict__ - for (x, y) in zip(existing, rep))): + and all(type(x) == type(y) # noqa: E721 + and x.__dict__ == y.__dict__ + for (x, y) in zip(existing, rep))): return existing self.system.orphan_representations.append(rep) return rep