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

branch
server
changeset 10759
aeb98b3fa008
parent 10754
6faecb62f3a4
child 11090
f5f5f5803935
diff -r 3cf5ee0c3e9f -r aeb98b3fa008 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py	Fri Jun 07 13:58:16 2024 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsFunctionVisitor.py	Sun Jun 09 12:59:51 2024 +0200
@@ -8,7 +8,7 @@
 """
 
 #####################################################################################
-## The visitor and associated classes are adapted from flake8-annotations v3.0.1
+## The visitor and associated classes are adapted from flake8-annotations v3.1.1
 #####################################################################################
 
 import ast
@@ -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