Files
dash-api/lib/python3.11/site-packages/dash/_no_update.py

12 lines
362 B
Python
Raw Normal View History

2025-09-07 22:09:54 +02:00
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"})
)