Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Jul 17, 2024
1 parent aa7148b commit e8ee464
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/python/packages/flet-core/src/flet_core/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum, EnumMeta
from typing import Any, Callable, Dict, Optional, Protocol, Tuple, Union
from typing import Any, Callable, Coroutine, Dict, Optional, Protocol, Tuple, Union
from warnings import warn

from flet_core.animation import Animation
Expand Down Expand Up @@ -393,7 +393,8 @@ class VisualDensity(Enum):


# Events
OptionalEventCallable = Optional[Callable[[ControlEvent], None]]
EventCallable = Callable[[ControlEvent], Union[None, Coroutine[None, None, None]]]
OptionalEventCallable = Optional[EventCallable]

# Wrapper
Wrapper = Callable[..., Any]
Expand Down

0 comments on commit e8ee464

Please sign in to comment.