Skip to content

NullEditor

Base classes

Name Children Inherits
Editor
promptantic.textual.editors
Base of all editors: a node, its path in the value, and an error line.

⋔ Inheritance diagram

graph TD
  1273144996["editors.NullEditor"]
  2997256436["editors.Editor"]
  4188532303["widget.Widget"]
  3946681048["dom.DOMNode"]
  53685856["message_pump.MessagePump"]
  2751680898["builtins.object"]
  2997256436 --> 1273144996
  4188532303 --> 2997256436
  3946681048 --> 4188532303
  53685856 --> 3946681048
  2751680898 --> 53685856

🛈 DocStrings

Bases: Editor

Nothing to enter: the value is null.

Source code in src/promptantic/textual/editors.py
class NullEditor(Editor):
    """Nothing to enter: the value is ``null``."""

    def compose(self) -> ComposeResult:
        yield Label("null", classes="pa-fixed")
        yield self.errors_widget()

    def get_value(self) -> Any | Unset:
        return None

:fa-brands-github: Show source on GitHub