Add documentation for children

This commit is contained in:
Joona Hoikkala 2019-08-30 23:28:48 +03:00
parent 37885ee6e7
commit 4e78430ef4
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C

View file

@ -319,6 +319,14 @@ class BlockNode(DirectiveNode):
The applicable parameters are dependent on the underlying configuration language
and its grammar.
BlockNode objects should have the following attributes in addition to
the ones described in DirectiveNode:
# Tuple of direct children of this BlockNode object. The order of children
# in this tuple retain the order of elements in the parsed configuration
# block.
children: Tuple[ParserNode, ...]
"""
@abc.abstractmethod