diff --git a/volatility/framework/interfaces/renderers.py b/volatility/framework/interfaces/renderers.py index b66100b98..38b39d66e 100644 --- a/volatility/framework/interfaces/renderers.py +++ b/volatility/framework/interfaces/renderers.py @@ -194,7 +194,7 @@ class TreeGrid(object, metaclass = ABCMeta): @abstractmethod def visit(self, - node: TreeNode, + node: Optional[TreeNode], function: VisitorSignature, initial_accumulator: _Type, sort_key: ColumnSortKey = None) -> None: @@ -207,6 +207,8 @@ class TreeGrid(object, metaclass = ABCMeta): be set based on a sort_key function which should accept a node's values and return something that can be sorted to receive the desired order (similar to the sort/sorted key). + If node is None, then the root node is used. + Args: node: The initial node to be visited function: The visitor to apply to the nodes under the initial node