Skip to content

NodeSource

Base classes

Name Children Inherits
Protocol
typing
Base class for protocol classes.

⋔ Inheritance diagram

graph TD
  2673285351["timecol.NodeSource"]
  1073422405["typing.Protocol"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  1073422405 --> 2673285351
  3481597255 --> 1073422405
  2751680898 --> 3481597255

🛈 DocStrings

Bases: Protocol

What time_column() needs of a session (Session, the app's session protocol).

Source code in src/datacook/engine/timecol.py
class NodeSource(Protocol):
    """What `time_column()` needs of a session (`Session`, the app's session protocol)."""

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

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

:fa-brands-github: Show source on GitHub