simplify some code
This commit is contained in:
parent
c8df48728b
commit
7865cd197a
@ -1515,7 +1515,7 @@ if sys.version_info >= (3, 10):
|
|||||||
@overload
|
@overload
|
||||||
def __get__(self, instance, owner) -> Callable[P, T]: ...
|
def __get__(self, instance, owner) -> Callable[P, T]: ...
|
||||||
|
|
||||||
def __get__(self, instance, owner) -> Callable:
|
def __get__(self, instance, owner) -> Callable: # type: ignore
|
||||||
"""Get the function with the instance bound to it.
|
"""Get the function with the instance bound to it.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -1563,7 +1563,9 @@ IndividualEventType = Union[
|
|||||||
EventSpec, EventHandler, Callable[G, Any], EventCallback[G, Any], Var[Any]
|
EventSpec, EventHandler, Callable[G, Any], EventCallback[G, Any], Var[Any]
|
||||||
]
|
]
|
||||||
|
|
||||||
EventType = Union[IndividualEventType[G], List[IndividualEventType[G]]]
|
ItemOrList = Union[V, List[V]]
|
||||||
|
|
||||||
|
EventType = ItemOrList[IndividualEventType[G]]
|
||||||
|
|
||||||
|
|
||||||
class EventNamespace(types.SimpleNamespace):
|
class EventNamespace(types.SimpleNamespace):
|
||||||
|
Loading…
Reference in New Issue
Block a user