Skip to content

Commit

Permalink
fix #196, introduce LightNodeMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
c0fec0de committed Oct 26, 2023
1 parent 8a6f1e6 commit 4015a45
Show file tree
Hide file tree
Showing 7 changed files with 1,263 additions and 201 deletions.
1 change: 1 addition & 0 deletions anytree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .iterators import PreOrderIter # noqa
from .iterators import ZigZagGroupIter # noqa
from .node import AnyNode # noqa
from .node import LightNodeMixin # noqa
from .node import LoopError # noqa
from .node import Node # noqa
from .node import NodeMixin # noqa
Expand Down
2 changes: 2 additions & 0 deletions anytree/node/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
* :any:`NodeMixin`: extends any python class to a tree node.
* :any:`SymlinkNode`: Tree node which references to another tree node.
* :any:`SymlinkNodeMixin`: extends any Python class to a symbolic link to a tree node.
* :any:`LightNodeMixin`: A :any:`NodeMixin` using slots.
"""

from .anynode import AnyNode # noqa
from .exceptions import LoopError # noqa
from .exceptions import TreeError # noqa
from .lightnodemixin import LightNodeMixin # noqa
from .node import Node # noqa
from .nodemixin import NodeMixin # noqa
from .symlinknode import SymlinkNode # noqa
Expand Down

0 comments on commit 4015a45

Please sign in to comment.