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

branch
eric7
changeset 10753
031cfa81992a
parent 10439
21c28b0f9e41
child 10754
6faecb62f3a4
diff -r d4dbb6b75bdc -r 031cfa81992a src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py	Fri Jun 07 13:51:43 2024 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py	Sat Jun 08 15:01:47 2024 +0200
@@ -571,8 +571,8 @@
         """
         if node.value is not None:
             # 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`
+            # node body will be an instance of `ast.Constant`, which we need to
+            # check to see if it's actually `None`
             if isinstance(node.value, ast.Constant) and node.value.value is None:
                 return
 

eric ide

mercurial