(self, eval_ctx: t.Optional[EvalContext] = None)
| 916 | ops: t.List["Operand"] |
| 917 | |
| 918 | def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any: |
| 919 | eval_ctx = get_eval_context(self, eval_ctx) |
| 920 | result = value = self.expr.as_const(eval_ctx) |
| 921 | |
| 922 | try: |
| 923 | for op in self.ops: |
| 924 | new_value = op.expr.as_const(eval_ctx) |
| 925 | result = _cmpop_to_func[op.op](value, new_value) |
| 926 | |
| 927 | if not result: |
| 928 | return False |
| 929 | |
| 930 | value = new_value |
| 931 | except Exception as e: |
| 932 | raise Impossible() from e |
| 933 | |
| 934 | return result |
| 935 | |
| 936 | |
| 937 | class Operand(Helper): |
nothing calls this directly
no test coverage detected