(self, eval_ctx: t.Optional[EvalContext] = None)
| 702 | expr2: t.Optional[Expr] |
| 703 | |
| 704 | def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any: |
| 705 | eval_ctx = get_eval_context(self, eval_ctx) |
| 706 | if self.test.as_const(eval_ctx): |
| 707 | return self.expr1.as_const(eval_ctx) |
| 708 | |
| 709 | # if we evaluate to an undefined object, we better do that at runtime |
| 710 | if self.expr2 is None: |
| 711 | raise Impossible() |
| 712 | |
| 713 | return self.expr2.as_const(eval_ctx) |
| 714 | |
| 715 | |
| 716 | def args_as_const( |
nothing calls this directly
no test coverage detected