This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any | |
from textual.containers import Vertical, VerticalScroll | |
from textual.widgets import Select, OptionList, Input | |
from textual.widgets.option_list import Option | |
from textual.validation import Validator, ValidationResult | |
class InputInOptions(Validator): | |
"""An `Input` validator that checks if the input is part of a list.""" |