Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 24, 2023
1 parent 511a174 commit 778c0ea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/magicgui/backends/_ipynb/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Callable,
Iterable,
Literal,
Optional,
get_type_hints,
)

Expand Down Expand Up @@ -687,8 +686,8 @@ def _mgui_create_menu_item(
self,
menu_name: str,
action_name: str,
callback: Optional[Callable] = None,
shortcut: Optional[str] = None,
callback: Callable | None = None,
shortcut: str | None = None,
):
pass

Expand All @@ -698,10 +697,10 @@ def _mgui_add_dock_widget(self, widget: Widget, area: protocols.Area) -> None:
def _mgui_add_tool_bar(self, widget: Widget, area: protocols.Area) -> None:
self._ipywidget.add_toolbar(widget.native, area)

Check warning on line 698 in src/magicgui/backends/_ipynb/widgets.py

View check run for this annotation

Codecov / codecov/patch

src/magicgui/backends/_ipynb/widgets.py#L698

Added line #L698 was not covered by tests

def _mgui_set_status_bar(self, widget: Optional[Widget]) -> None:
def _mgui_set_status_bar(self, widget: Widget | None) -> None:
self._ipywidget.set_status_bar(widget.native)

Check warning on line 701 in src/magicgui/backends/_ipynb/widgets.py

View check run for this annotation

Codecov / codecov/patch

src/magicgui/backends/_ipynb/widgets.py#L701

Added line #L701 was not covered by tests

def _mgui_set_menu_bar(self, widget: Optional[Widget]) -> None:
def _mgui_set_menu_bar(self, widget: Widget | None) -> None:
self._ipywidget.set_menu_bar(widget.native)

Check warning on line 704 in src/magicgui/backends/_ipynb/widgets.py

View check run for this annotation

Codecov / codecov/patch

src/magicgui/backends/_ipynb/widgets.py#L704

Added line #L704 was not covered by tests


Expand Down

0 comments on commit 778c0ea

Please sign in to comment.