Skip to content

Commit

Permalink
add other none types
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 committed Nov 13, 2024
1 parent d0bcedd commit cff17df
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/components/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,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 | UndefinedType = Undefined,
default_focused_value: Date | UndefinedType = Undefined,
min_value: Date | UndefinedType = Undefined,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/deephaven/ui/components/combo_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def combo_box(
contextual_help: Element | UndefinedType = Undefined,
on_open_change: Callable[[bool, MenuTriggerAction], None]
| UndefinedType = Undefined,
on_selection_change: Callable[[Key], None] | UndefinedType = Undefined,
on_selection_change: Callable[[Key | None], None] | UndefinedType = Undefined,
on_change: Callable[[Key], None] | UndefinedType = Undefined,
on_input_change: Callable[[str], None] | UndefinedType = Undefined,
on_focus: Callable[[FocusEventCallable], None] | UndefinedType = Undefined,
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/components/date_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def _convert_date_field_props(
@make_component
def date_field(
placeholder_value: Date | UndefinedType = 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 | UndefinedType = Undefined,
max_value: Date | UndefinedType = Undefined,
# TODO (issue # 698) we need to implement unavailable_values
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/components/date_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def _convert_date_picker_props(
@make_component
def date_picker(
placeholder_value: Date | UndefinedType = 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 | UndefinedType = Undefined,
max_value: Date | UndefinedType = Undefined,
# TODO (issue # 698) we need to implement unavailable_values
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/components/date_range_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def _convert_date_range_picker_props(
@make_component
def date_range_picker(
placeholder_value: Date | UndefinedType = 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 | UndefinedType = Undefined,
max_value: Date | UndefinedType = Undefined,
# TODO (issue # 698) we need to implement unavailable_values
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/components/radio_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def radio_group(
*children: Any,
is_emphasized: bool | UndefinedType = Undefined,
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 | UndefinedType = Undefined,
is_read_only: bool | UndefinedType = Undefined,
name: str | UndefinedType = Undefined,
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/components/range_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,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 | UndefinedType = Undefined,
default_focused_value: Date | UndefinedType = Undefined,
min_value: Date | UndefinedType = Undefined,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/deephaven/ui/components/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def tabs(
keyboard_activation: KeyboardActivationType | UndefinedType = "automatic",
orientation: Orientation | UndefinedType = "horizontal",
disallow_empty_selection: bool | UndefinedType = Undefined,
selected_key: Key | UndefinedType = Undefined,
selected_key: Key | None | UndefinedType = Undefined,
default_selected_key: Key | UndefinedType = Undefined,
on_selection_change: Callable[[Key], None] | UndefinedType = Undefined,
on_change: Callable[[Key], None] | UndefinedType = Undefined,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/deephaven/ui/components/text_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


def text_area(
icon: Element | IconTypes | UndefinedType = Undefined,
icon: Element | IconTypes | None | UndefinedType = Undefined,
is_quiet: bool | UndefinedType = Undefined,
is_disabled: bool | UndefinedType = Undefined,
is_read_only: bool | UndefinedType = Undefined,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/deephaven/ui/components/text_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


def text_field(
icon: Element | UndefinedType = Undefined,
icon: Element | None | UndefinedType = Undefined,
is_quiet: bool | UndefinedType = Undefined,
is_disabled: bool | UndefinedType = Undefined,
is_read_only: bool | UndefinedType = Undefined,
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/components/time_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def _convert_time_field_props(
@make_component
def time_field(
placeholder_value: Time | UndefinedType = Undefined,
value: Time | UndefinedType = Undefined,
default_value: Time | UndefinedType = Undefined,
value: Time | None | UndefinedType = Undefined,
default_value: Time | None | UndefinedType = Undefined,
min_value: Time | UndefinedType = Undefined,
max_value: Time | UndefinedType = Undefined,
granularity: TimeGranularity | UndefinedType = "SECOND",
Expand Down

0 comments on commit cff17df

Please sign in to comment.