Skip to content

TreeReader

Base classes

Name Children Inherits
Protocol
typing
Base class for protocol classes.

⋔ Inheritance diagram

graph TD
  2877071840["restructure.TreeReader"]
  1073422405["typing.Protocol"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  1073422405 --> 2877071840
  3481597255 --> 1073422405
  2751680898 --> 3481597255

🛈 DocStrings

Bases: Protocol

Source code in src/datacook/engine/restructure.py
class TreeReader(Protocol):
    @property
    def registry(self) -> Registry[type[Op]]: ...

    def get(self, node_id: str) -> Node | None: ...

    def children(self, node_id: str) -> tuple[Node, ...]: ...

    def summary(self, node_id: str) -> FrameSummary | None: ...

:fa-brands-github: Show source on GitHub