refactor: Update TextInput class to include additional value types
This commit is contained in:
parent
e96e6f9a16
commit
7df49db6dd
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ class TextInput(StrInput):
|
||||||
Raises:
|
Raises:
|
||||||
ValueError: If the value is not of a valid type or if the input is missing a required key.
|
ValueError: If the value is not of a valid type or if the input is missing a required key.
|
||||||
"""
|
"""
|
||||||
value = None
|
value: str | AsyncIterator | Iterator | None = None
|
||||||
if isinstance(v, str):
|
if isinstance(v, str):
|
||||||
value = v
|
value = v
|
||||||
elif isinstance(v, Message):
|
elif isinstance(v, Message):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue