A boolean operator that can be used in a :class:`BooleanOperation` expression.
| 326 | @add_slots |
| 327 | @dataclass(frozen=True) |
| 328 | class And(BaseBooleanOp): |
| 329 | """ |
| 330 | A boolean operator that can be used in a :class:`BooleanOperation` |
| 331 | expression. |
| 332 | """ |
| 333 | |
| 334 | #: Any space that appears directly before this operator. |
| 335 | whitespace_before: BaseParenthesizableWhitespace = SimpleWhitespace.field(" ") |
| 336 | |
| 337 | #: Any space that appears directly after this operator. |
| 338 | whitespace_after: BaseParenthesizableWhitespace = SimpleWhitespace.field(" ") |
| 339 | |
| 340 | def _get_token(self) -> str: |
| 341 | return "and" |
| 342 | |
| 343 | |
| 344 | @add_slots |