See the class documentation.
(self)
| 5229 | |
| 5230 | @property |
| 5231 | def tri_value(self): |
| 5232 | """ |
| 5233 | See the class documentation. |
| 5234 | """ |
| 5235 | # This emulates a reverse dependency of 'm && visibility' for |
| 5236 | # non-optional choices, which is how the C implementation does it |
| 5237 | |
| 5238 | val = 0 if self.is_optional else 1 |
| 5239 | |
| 5240 | if self.user_value is not None: |
| 5241 | val = max(val, self.user_value) |
| 5242 | |
| 5243 | # Warning: See Symbol._rec_invalidate(), and note that this is a hidden |
| 5244 | # function call (property magic) |
| 5245 | val = min(val, self.visibility) |
| 5246 | |
| 5247 | # Promote m to y for boolean choices |
| 5248 | return 2 if val == 1 and self.type is BOOL else val |
| 5249 | |
| 5250 | @property |
| 5251 | def assignable(self): |