|
69 | 69 | from . import _watch |
70 | 70 | from . import _get_app |
71 | 71 |
|
72 | | -from ._get_app import get_app, with_app_context, with_app_context_async, with_app_context_factory |
| 72 | +from ._get_app import ( |
| 73 | + get_app, |
| 74 | + with_app_context, |
| 75 | + with_app_context_async, |
| 76 | + with_app_context_factory, |
| 77 | +) |
73 | 78 | from ._grouping import map_grouping, grouping_len, update_args_group |
74 | 79 | from ._obsolete import ObsoleteChecker |
75 | 80 |
|
@@ -366,7 +371,7 @@ class Dash(ObsoleteChecker): |
366 | 371 | ``True`` here in which case you must explicitly set it ``False`` for |
367 | 372 | those callbacks you wish to have an initial call. This setting has no |
368 | 373 | effect on triggering callbacks when their inputs change later on. |
369 | | - |
| 374 | +
|
370 | 375 | :param hide_all_callbacks: Default ``False``: Sets the default value of |
371 | 376 | ``hidden`` for all callbacks added to the app. Normally all callbacks |
372 | 377 | are visible in the devtools callbacks tab. You can set this for |
@@ -1658,13 +1663,10 @@ def _setup_server(self): |
1658 | 1663 | current_app_config = get_app().config |
1659 | 1664 |
|
1660 | 1665 | self._callback_list.extend(_callback.GLOBAL_CALLBACK_LIST) |
1661 | | - # For each callback function, if the hidden parameter uses the default value None, |
| 1666 | + # For each callback function, if the hidden parameter uses the default value None, |
1662 | 1667 | # replace it with the actual value of the hide_all_callbacks property of the current application instance. |
1663 | 1668 | self._callback_list = [ |
1664 | | - { |
1665 | | - **_callback, |
1666 | | - "hidden": current_app_config.get("hide_all_callbacks", False) |
1667 | | - } |
| 1669 | + {**_callback, "hidden": current_app_config.get("hide_all_callbacks", False)} |
1668 | 1670 | if _callback.get("hidden") is None |
1669 | 1671 | else _callback |
1670 | 1672 | for _callback in self._callback_list |
|
0 commit comments