Return True if value is within bounds.
(self, value: float)
| 73 | return self |
| 74 | |
| 75 | def check(self, value: float) -> bool: |
| 76 | """Return True if value is within bounds.""" |
| 77 | if self.upper_bound is not None and value > self.upper_bound: |
| 78 | return False |
| 79 | if self.lower_bound is not None and value < self.lower_bound: |
| 80 | return False |
| 81 | return True |
| 82 | |
| 83 | |
| 84 | class ScopeCheckResult(BaseModel): |