(self, op: ast3.operator)
| 555 | } |
| 556 | |
| 557 | def from_operator(self, op: ast3.operator) -> str: |
| 558 | op_name = ASTConverter.op_map.get(type(op)) |
| 559 | if op_name is None: |
| 560 | raise RuntimeError("Unknown operator " + str(type(op))) |
| 561 | else: |
| 562 | return op_name |
| 563 | |
| 564 | comp_op_map: Final[dict[type[AST], str]] = { |
| 565 | ast3.Gt: ">", |
no test coverage detected