From 0673e64e78885e2a39e9884862b2052377d306a5 Mon Sep 17 00:00:00 2001 From: Joe Numainville Date: Fri, 23 Feb 2024 10:44:17 -0600 Subject: [PATCH] fix types --- plugins/ui/src/deephaven/ui/_internal/utils.py | 2 +- plugins/ui/src/deephaven/ui/components/spectrum/item.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ui/src/deephaven/ui/_internal/utils.py b/plugins/ui/src/deephaven/ui/_internal/utils.py index 30b96751a..1cd6b66e3 100644 --- a/plugins/ui/src/deephaven/ui/_internal/utils.py +++ b/plugins/ui/src/deephaven/ui/_internal/utils.py @@ -184,7 +184,7 @@ def wrap_callable(func: Callable) -> Callable: return func -def create_props(args: dict[str, Any]) -> tuple[Sequence[Any], dict[str, Any]]: +def create_props(args: dict[str, Any]) -> tuple[tuple[Any], dict[str, Any]]: """ Create props from the args. Combines the named props with the kwargs props. diff --git a/plugins/ui/src/deephaven/ui/components/spectrum/item.py b/plugins/ui/src/deephaven/ui/components/spectrum/item.py index 3ca2245b3..8f6efac9d 100644 --- a/plugins/ui/src/deephaven/ui/components/spectrum/item.py +++ b/plugins/ui/src/deephaven/ui/components/spectrum/item.py @@ -7,7 +7,7 @@ ItemElement = Element -def item(children: Stringable, **props: Any) -> ItemElement: +def item(*children: Stringable, **props: Any) -> ItemElement: """ An item that can be added to a menu, such as a picker