Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 21, 2024
1 parent e2281fd commit 503faae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions qe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@
"metadata": {},
"outputs": [],
"source": [
"from IPython.display import display\n",
"\n",
"from aiidalab_qe.app.wrapper import AppWrapperContoller, AppWrapperModel, AppWrapperView\n",
"from IPython.display import display\n",
"\n",
"model = AppWrapperModel()\n",
"view = AppWrapperView()\n",
Expand All @@ -75,12 +74,12 @@
"source": [
"import urllib.parse as urlparse\n",
"\n",
"from aiidalab_qe.app.main import App\n",
"\n",
"from aiidalab_widgets_base.bug_report import (\n",
" install_create_github_issue_exception_handler,\n",
")\n",
"\n",
"from aiidalab_qe.app.main import App\n",
"\n",
"install_create_github_issue_exception_handler(\n",
" view.output,\n",
" url=\"https://github.com/aiidalab/aiidalab-qe/issues/new\",\n",
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def without_triggering(toggle: str):
def decorator(func):
def wrapper(self, change: dict):
"""Toggle off other button without triggering its callback."""
view: AppWrapperView = getattr(self, "_view")
view: AppWrapperView = self._view
button: ipw.ToggleButton = getattr(view, toggle)
callback = getattr(self, f"_on_{toggle}")
button.unobserve(callback, "value")
Expand Down

0 comments on commit 503faae

Please sign in to comment.