summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-07-20 11:55:23 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-07-20 11:55:23 +0200
commit34956983713b6b5c5450bb58bddb0b5408f211a8 (patch)
treeae5773e3318178bdd0586dd1198517a80cda710d
parentf8d10420e2ba82bcfa6516a8679406bd5f1e18dc (diff)
downloadcython-34956983713b6b5c5450bb58bddb0b5408f211a8.tar.gz
Explicitly return None from a method that is expected to return something otherwise.
-rw-r--r--Cython/Compiler/Symtab.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py
index 17d3634bc..712a06a7a 100644
--- a/Cython/Compiler/Symtab.py
+++ b/Cython/Compiler/Symtab.py
@@ -992,6 +992,7 @@ class Scope(object):
if entry.type.is_fused and self.fused_to_specific:
return entry.type.specialize(self.fused_to_specific)
return entry.type
+ return None
def lookup_operator(self, operator, operands):
if operands[0].type.is_cpp_class: