From 55f44849f9224bbd5e4051d3bc56b6fcdba40515 Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Tue, 19 Nov 2024 13:58:45 -0500 Subject: [PATCH] add missing None --- plugins/ui/src/deephaven/ui/components/calendar.py | 4 ++-- plugins/ui/src/deephaven/ui/components/combo_box.py | 2 +- plugins/ui/src/deephaven/ui/components/date_field.py | 4 ++-- plugins/ui/src/deephaven/ui/components/date_picker.py | 4 ++-- plugins/ui/src/deephaven/ui/components/date_range_picker.py | 4 ++-- plugins/ui/src/deephaven/ui/components/picker.py | 2 +- plugins/ui/src/deephaven/ui/components/radio_group.py | 4 ++-- plugins/ui/src/deephaven/ui/components/range_calendar.py | 4 ++-- plugins/ui/src/deephaven/ui/components/tabs.py | 2 +- plugins/ui/src/deephaven/ui/components/text_area.py | 2 +- plugins/ui/src/deephaven/ui/components/text_field.py | 2 +- plugins/ui/src/deephaven/ui/components/time_field.py | 4 ++-- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/plugins/ui/src/deephaven/ui/components/calendar.py b/plugins/ui/src/deephaven/ui/components/calendar.py index f4f5ec4c2..400c54494 100644 --- a/plugins/ui/src/deephaven/ui/components/calendar.py +++ b/plugins/ui/src/deephaven/ui/components/calendar.py @@ -76,8 +76,8 @@ def _convert_calendar_props( @make_component def calendar( - value: Date | UndefinedType = Undefined, - default_value: Date | UndefinedType = Undefined, + value: Date | None | UndefinedType = Undefined, + default_value: Date | None | UndefinedType = Undefined, focused_value: Date | None = None, default_focused_value: Date | None = None, min_value: Date | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/combo_box.py b/plugins/ui/src/deephaven/ui/components/combo_box.py index 8113b2879..7c5e9bdbf 100644 --- a/plugins/ui/src/deephaven/ui/components/combo_box.py +++ b/plugins/ui/src/deephaven/ui/components/combo_box.py @@ -60,7 +60,7 @@ def combo_box( default_input_value: str | None = None, allows_custom_value: bool | None = None, disabled_keys: list[Key] | None = None, - selected_key: Key | UndefinedType = Undefined, + selected_key: Key | None | UndefinedType = Undefined, default_selected_key: Key | None = None, is_disabled: bool | None = None, is_read_only: bool | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/date_field.py b/plugins/ui/src/deephaven/ui/components/date_field.py index 88581f2ec..14fecfd08 100644 --- a/plugins/ui/src/deephaven/ui/components/date_field.py +++ b/plugins/ui/src/deephaven/ui/components/date_field.py @@ -78,8 +78,8 @@ def _convert_date_field_props( @make_component def date_field( placeholder_value: Date | None = dh_now(), - value: Date | UndefinedType = Undefined, - default_value: Date | UndefinedType = Undefined, + value: Date | None | UndefinedType = Undefined, + default_value: Date | None | UndefinedType = Undefined, min_value: Date | None = None, max_value: Date | None = None, # TODO (issue # 698) we need to implement unavailable_values diff --git a/plugins/ui/src/deephaven/ui/components/date_picker.py b/plugins/ui/src/deephaven/ui/components/date_picker.py index 0f431a146..305248db6 100644 --- a/plugins/ui/src/deephaven/ui/components/date_picker.py +++ b/plugins/ui/src/deephaven/ui/components/date_picker.py @@ -82,8 +82,8 @@ def _convert_date_picker_props( @make_component def date_picker( placeholder_value: Date | None = dh_now(), - value: Date | UndefinedType = Undefined, - default_value: Date | UndefinedType = Undefined, + value: Date | None | UndefinedType = Undefined, + default_value: Date | None | UndefinedType = Undefined, min_value: Date | None = None, max_value: Date | None = None, # TODO (issue # 698) we need to implement unavailable_values diff --git a/plugins/ui/src/deephaven/ui/components/date_range_picker.py b/plugins/ui/src/deephaven/ui/components/date_range_picker.py index 27cee7ecd..6f8a1f99b 100644 --- a/plugins/ui/src/deephaven/ui/components/date_range_picker.py +++ b/plugins/ui/src/deephaven/ui/components/date_range_picker.py @@ -80,8 +80,8 @@ def _convert_date_range_picker_props( @make_component def date_range_picker( placeholder_value: Date | None = dh_now(), - value: DateRange | UndefinedType = Undefined, - default_value: DateRange | UndefinedType = Undefined, + value: DateRange | None | UndefinedType = Undefined, + default_value: DateRange | None | UndefinedType = Undefined, min_value: Date | None = None, max_value: Date | None = None, # TODO (issue # 698) we need to implement unavailable_values diff --git a/plugins/ui/src/deephaven/ui/components/picker.py b/plugins/ui/src/deephaven/ui/components/picker.py index e3f2fd6ed..f24f1c96b 100644 --- a/plugins/ui/src/deephaven/ui/components/picker.py +++ b/plugins/ui/src/deephaven/ui/components/picker.py @@ -41,7 +41,7 @@ def picker( *children: Item | SectionElement | Table | PartitionedTable | ItemTableSource, default_selected_key: Key | None = None, - selected_key: Key | UndefinedType = Undefined, + selected_key: Key | None | UndefinedType = Undefined, on_selection_change: Callable[[Key], None] | None = None, on_change: Callable[[Key], None] | None = None, is_quiet: bool | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/radio_group.py b/plugins/ui/src/deephaven/ui/components/radio_group.py index 1a113a1cd..4477f6f23 100644 --- a/plugins/ui/src/deephaven/ui/components/radio_group.py +++ b/plugins/ui/src/deephaven/ui/components/radio_group.py @@ -30,8 +30,8 @@ def radio_group( *children: Any, is_emphasized: bool | None = None, orientation: Orientation = "vertical", - value: str | UndefinedType = Undefined, - default_value: str | UndefinedType = Undefined, + value: str | None | UndefinedType = Undefined, + default_value: str | None | UndefinedType = Undefined, is_disabled: bool | None = None, is_read_only: bool | None = None, name: str | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/range_calendar.py b/plugins/ui/src/deephaven/ui/components/range_calendar.py index 257f18c07..f006e3f9e 100644 --- a/plugins/ui/src/deephaven/ui/components/range_calendar.py +++ b/plugins/ui/src/deephaven/ui/components/range_calendar.py @@ -80,8 +80,8 @@ def _convert_range_calendar_props( @make_component def range_calendar( - value: DateRange | UndefinedType = Undefined, - default_value: DateRange | UndefinedType = Undefined, + value: DateRange | None | UndefinedType = Undefined, + default_value: DateRange | None | UndefinedType = Undefined, focused_value: Date | None = None, default_focused_value: Date | None = None, min_value: Date | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/tabs.py b/plugins/ui/src/deephaven/ui/components/tabs.py index 9fab44242..354db8d48 100644 --- a/plugins/ui/src/deephaven/ui/components/tabs.py +++ b/plugins/ui/src/deephaven/ui/components/tabs.py @@ -33,7 +33,7 @@ def tabs( keyboard_activation: KeyboardActivationType | None = "automatic", orientation: Orientation | None = "horizontal", disallow_empty_selection: bool | None = None, - selected_key: Key | UndefinedType = Undefined, + selected_key: Key | None | UndefinedType = Undefined, default_selected_key: Key | None = None, on_selection_change: Callable[[Key], None] | None = None, on_change: Callable[[Key], None] | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/text_area.py b/plugins/ui/src/deephaven/ui/components/text_area.py index d930bf774..9df997110 100644 --- a/plugins/ui/src/deephaven/ui/components/text_area.py +++ b/plugins/ui/src/deephaven/ui/components/text_area.py @@ -34,7 +34,7 @@ def text_area( - icon: Element | IconTypes | UndefinedType = Undefined, + icon: Element | IconTypes | None | UndefinedType = Undefined, is_quiet: bool | None = None, is_disabled: bool | None = None, is_read_only: bool | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/text_field.py b/plugins/ui/src/deephaven/ui/components/text_field.py index 6f9cf9f07..41985445c 100644 --- a/plugins/ui/src/deephaven/ui/components/text_field.py +++ b/plugins/ui/src/deephaven/ui/components/text_field.py @@ -31,7 +31,7 @@ def text_field( - icon: Element | UndefinedType = Undefined, + icon: Element | None | UndefinedType = Undefined, is_quiet: bool | None = None, is_disabled: bool | None = None, is_read_only: bool | None = None, diff --git a/plugins/ui/src/deephaven/ui/components/time_field.py b/plugins/ui/src/deephaven/ui/components/time_field.py index b1cb6e42b..7e4002d8c 100644 --- a/plugins/ui/src/deephaven/ui/components/time_field.py +++ b/plugins/ui/src/deephaven/ui/components/time_field.py @@ -73,8 +73,8 @@ def _convert_time_field_props( @make_component def time_field( placeholder_value: Time | None = None, - value: Time | UndefinedType = Undefined, - default_value: Time | UndefinedType = Undefined, + value: Time | None | UndefinedType = Undefined, + default_value: Time | None | UndefinedType = Undefined, min_value: Time | None = None, max_value: Time | None = None, granularity: TimeGranularity | None = "SECOND",