(new: _Type | Callable[[_Type], _Type])
| 81 | hook = current_hook() |
| 82 | |
| 83 | def dispatch(new: _Type | Callable[[_Type], _Type]) -> None: |
| 84 | if callable(new): |
| 85 | next_value = new(self.value) |
| 86 | else: |
| 87 | next_value = new |
| 88 | if not strictly_equal(next_value, self.value): |
| 89 | self.value = next_value |
| 90 | hook.schedule_render() |
| 91 | |
| 92 | self.dispatch = dispatch |
| 93 |
nothing calls this directly
no test coverage detected