summaryrefslogtreecommitdiff
path: root/Cython/Compiler/Nodes.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-06-09 21:40:06 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-06-09 21:40:06 +0200
commit2b4c89ada87b126bfd6b70048e98e1ec0a528867 (patch)
treeabd62ed3d4d10dde308f01247a7864fe81ae4c31 /Cython/Compiler/Nodes.py
parent2f6c69b1e3d344239399f4f7188a52d5f29b51c3 (diff)
downloadcython-linting.tar.gz
Clean up some operator usages and style issues, and enforce them with pycodestyle.linting
Diffstat (limited to 'Cython/Compiler/Nodes.py')
-rw-r--r--Cython/Compiler/Nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py
index c9bea7ca8..6e9428a05 100644
--- a/Cython/Compiler/Nodes.py
+++ b/Cython/Compiler/Nodes.py
@@ -1052,7 +1052,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode):
self.arg_name = EncodedString(self.name)
else:
if self.templates:
- if not self.name in self.templates:
+ if self.name not in self.templates:
error(self.pos, "'%s' is not a type identifier" % self.name)
type = PyrexTypes.TemplatePlaceholderType(self.name)
else: