-
Notifications
You must be signed in to change notification settings - Fork 584
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
TextField.value can take both a str and a number. But its type hint in textfield.py is Optional[str] = None(either str or None)
The type hint should be updated, if you think this behavior is normal.
Code example to reproduce the issue:
import flet as ft
def main(page: ft.Page):
tb1 = ft.TextField(value=2500)
tb2 = ft.TextField(value="2500")
page.add(tb1, tb2)
ft.app(target=main)FeodorFitsner
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working