| 261 | |
| 262 | |
| 263 | class BooleanPredicate(Predicate): |
| 264 | def __init__(self, value, description=None): |
| 265 | self.value = value |
| 266 | self.description = description or "boolean %s" % value |
| 267 | |
| 268 | def __call__(self, config): |
| 269 | return self.value |
| 270 | |
| 271 | def _as_string(self, config, negate=False): |
| 272 | return self._format_description(config, negate=negate) |
| 273 | |
| 274 | |
| 275 | class SpecPredicate(Predicate): |