File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
4
4
5
5
## [UNRELEASED]
6
6
7
+ ## Added
8
+ - [#3369](https://github.com/plotly/dash/pull/3369) Expose `dash.NoUpdate` type
9
+
7
10
## Fixed
8
11
- [#3353](https://github.com/plotly/dash/pull/3353) Support pattern-matching/dict ids in `dcc.Loading` `target_components`
9
12
Original file line number Diff line number Diff line change 26
26
get_relative_path ,
27
27
strip_relative_path ,
28
28
)
29
+ from ._no_update import NoUpdate # noqa: F401,E402
29
30
from .background_callback import ( # noqa: F401,E402
30
31
CeleryManager ,
31
32
DiskcacheManager ,
@@ -86,6 +87,7 @@ def _jupyter_nbextension_paths():
86
87
"page_registry" ,
87
88
"Dash" ,
88
89
"no_update" ,
90
+ "NoUpdate" ,
89
91
"page_container" ,
90
92
"Patch" ,
91
93
"jupyter_dash" ,
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ def to_plotly_json(self): # pylint: disable=no-self-use
4
4
5
5
@staticmethod
6
6
def is_no_update (obj ):
7
- return isinstance (obj , NoUpdate ) or (
8
- isinstance (obj , dict ) and obj == {"_dash_no_update" : "_dash_no_update" }
7
+ return (
8
+ obj is NoUpdate
9
+ or isinstance (obj , NoUpdate )
10
+ or (isinstance (obj , dict ) and obj == {"_dash_no_update" : "_dash_no_update" })
9
11
)
You can’t perform that action at this time.
0 commit comments