Skip to content

SelectSessionConfigOption

Base classes

Name Children Inherits
_ConfigOptionBase
aclientp.schema.v2.config_options

⋔ Inheritance diagram

graph TD
  95970866990080["config_options.SelectSessionConfigOption"]
  95970866994960["config_options._ConfigOptionBase"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970866994960 --> 95970866990080
  95970868359040 --> 95970866994960
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: _ConfigOptionBase

A single-value selector (dropdown).

Source code in src/aclientp/schema/v2/config_options.py
class SelectSessionConfigOption(_ConfigOptionBase):
    """A single-value selector (dropdown)."""

    type: Literal["select"] = Field(default="select", init=False)

    current_value: SessionConfigValueId
    """The selected value; one of the ``value``s in ``options``."""

    options: SessionConfigSelectOptions
    """The selectable values; at least one, each ``value`` unique."""

current_value instance-attribute

current_value: SessionConfigValueId

The selected value; one of the values in options.

options instance-attribute

The selectable values; at least one, each value unique.

:fa-brands-github: Show source on GitHub