Ensure the new max value is between valmax and self.val[0].
(self, max)
| 883 | return self._stepped_value(min) |
| 884 | |
| 885 | def _max_in_bounds(self, max): |
| 886 | """Ensure the new max value is between valmax and self.val[0].""" |
| 887 | if max >= self.valmax: |
| 888 | if not self.closedmax: |
| 889 | return self.val[1] |
| 890 | max = self.valmax |
| 891 | |
| 892 | if max <= self.val[0]: |
| 893 | max = self.val[0] |
| 894 | return self._stepped_value(max) |
| 895 | |
| 896 | def _value_in_bounds(self, vals): |
| 897 | """Clip min, max values to the bounds.""" |
no test coverage detected