Parse an expression. Per default all expressions are parsed, if the optional `with_condexpr` parameter is set to `False` conditional expressions are not parsed.
(self, with_condexpr: bool = True)
| 510 | return target # type: ignore |
| 511 | |
| 512 | def parse_expression(self, with_condexpr: bool = True) -> nodes.Expr: |
| 513 | """Parse an expression. Per default all expressions are parsed, if |
| 514 | the optional `with_condexpr` parameter is set to `False` conditional |
| 515 | expressions are not parsed. |
| 516 | """ |
| 517 | if with_condexpr: |
| 518 | return self.parse_condexpr() |
| 519 | return self.parse_or() |
| 520 | |
| 521 | def parse_condexpr(self) -> nodes.Expr: |
| 522 | lineno = self.stream.current.lineno |