Commit 8fbaa3a
committed
Add
The `str` just returns the value, and `repr` gets all the info,
including the new `unique_id`.
We also implement `__str__` for `_Sentinel` to return a more meaningful
string, since it will be shown in the `LatestValueCache` string
representation when no value has been received yet.
Signed-off-by: Leandro Lucarella <[email protected]>__str__ and __repr__ to LatestValueCache
1 parent 8b2e546 commit 8fbaa3a
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
0 commit comments