fixed a bug with config entry documentation discovery
@@ -212,7 +212,8 @@ def get_config_comments(func):
for e in target.elts:
add_doc(e)
- for ast_entry in body_code.body:
+ for ast_root in body_code.body:
+ for ast_entry in [ast_root] + list(ast.iter_child_nodes(ast_root)):
if isinstance(ast_entry, ast.Assign):
# we found an assignment statement
# go through all targets of the assignment
