refactor: Update TextInput class to include additional value types

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-20 21:50:12 -03:00
commit 7df49db6dd

View file

@ -141,7 +141,7 @@ class TextInput(StrInput):
Raises:
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):
value = v
elif isinstance(v, Message):