Skip to content

Commit

Permalink
add missing None
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 committed Nov 19, 2024
1 parent 2cfebd7 commit 55f4484
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 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 @@ -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,
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 @@ -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,
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 @@ -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
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 @@ -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
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 @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/deephaven/ui/components/picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
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 @@ -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,
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 @@ -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,
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 @@ -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,
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 @@ -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,
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 @@ -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,
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 @@ -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",
Expand Down

0 comments on commit 55f4484

Please sign in to comment.