mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 04:07:39 +02:00
Update typing and documentation on renderers.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user