src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py

branch
eric7
changeset 10170
6cf1ee737d8f
parent 10169
0f70a4ef4592
child 10439
21c28b0f9e41
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py	Tue Aug 29 16:55:18 2023 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py	Tue Aug 29 17:48:25 2023 +0200
@@ -573,10 +573,7 @@
             # In the event of an explicit `None` return (`return None`), the
             # node body will be an instance `ast.Constant` (3.8+), which we
             # need to check to see if it's actually `None`
-            if (
-                isinstance(node.value, ast.Constant)
-                and node.value.value is None
-            ):
+            if isinstance(node.value, ast.Constant) and node.value.value is None:
                 return
 
             self.__nonNoneReturnNodes.add(self.__context[-1])

eric ide

mercurial