Skip to content

NullNode

Base classes

Name Children Inherits
NodeBase
promptantic.form.nodes
Common to all nodes.

⋔ Inheritance diagram

graph TD
  701021909["nodes.NullNode"]
  1324256109["nodes.NodeBase"]
  2751680898["builtins.object"]
  1324256109 --> 701021909
  2751680898 --> 1324256109

🛈 DocStrings

Bases: NodeBase

Only null (e.g. the None member of a union that isn't just "optional").

Source code in src/promptantic/form/nodes.py
@dataclass(frozen=True)
class NullNode(NodeBase):
    """Only ``null`` (e.g. the ``None`` member of a union that isn't just "optional")."""

    kind: Literal["null"] = "null"

:fa-brands-github: Show source on GitHub