done
This commit is contained in:
11
lib/python3.11/site-packages/dash/_no_update.py
Normal file
11
lib/python3.11/site-packages/dash/_no_update.py
Normal file
@ -0,0 +1,11 @@
|
||||
class NoUpdate:
|
||||
def to_plotly_json(self): # pylint: disable=no-self-use
|
||||
return {"_dash_no_update": "_dash_no_update"}
|
||||
|
||||
@staticmethod
|
||||
def is_no_update(obj):
|
||||
return (
|
||||
obj is NoUpdate
|
||||
or isinstance(obj, NoUpdate)
|
||||
or (isinstance(obj, dict) and obj == {"_dash_no_update": "_dash_no_update"})
|
||||
)
|
Reference in New Issue
Block a user