Skip to content
Snippets Groups Projects
Commit b28d4299 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Change MRO for LeafNode and ContainerNode.

parent 4f8659e3
No related branches found
No related tags found
No related merge requests found
......@@ -693,7 +693,7 @@ class TerminalNode(SchemaNode):
return [self]
return []
class ContainerNode(InternalNode, DataNode):
class ContainerNode(DataNode, InternalNode):
"""Container node."""
def __init__(self) -> None:
......@@ -1001,7 +1001,7 @@ class CaseNode(InternalNode):
return "{}:({})".format(
self._tree_line_prefix(), self.iname())
class LeafNode(TerminalNode, DataNode):
class LeafNode(DataNode, TerminalNode):
"""Leaf node."""
def __init__(self) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment