File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 9
9
10
10
from .widget import Widget
11
11
12
- UNSET = object ()
12
+
13
+ class _Unset :
14
+ def __repr__ (self ) -> str :
15
+ return "UNSET"
16
+
17
+
18
+ UNSET = _Unset ()
13
19
14
20
15
21
class ValueWidget (Widget ):
@@ -18,13 +24,12 @@ class ValueWidget(Widget):
18
24
Parameters
19
25
----------
20
26
value : Any, optional
21
- The starting value for the widget, by default ``None``
27
+ The starting value for the widget.
22
28
bind : Any, optional
23
29
A value or callback to bind this widget, then whenever `widget.value` is
24
30
accessed, the value provided here will be returned. ``value`` can be a
25
31
callable, in which case ``value(self)`` will be returned (i.e. your callback
26
32
must accept a single parameter, which is this widget instance.).
27
-
28
33
"""
29
34
30
35
_widget : _protocols .ValueWidgetProtocol
You can’t perform that action at this time.
0 commit comments