We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a57f7 commit e7da41eCopy full SHA for e7da41e
cpp/static_data.py
@@ -60,7 +60,9 @@ def find_static(function_node):
60
'constexpr' not in node.type.modifiers
61
)
62
63
- if is_not_const and (static_is_optional or is_static):
+ is_not_none_type = node.name is not None
64
+
65
+ if is_not_const and (static_is_optional or is_static) and is_not_none_type:
66
print_warning(node)
67
count += 1
68
elif isinstance(node, ast.Function) and node.body:
0 commit comments