Return True if `node` holds a tuple.
(node: LN)
| 630 | |
| 631 | |
| 632 | def is_tuple(node: LN) -> bool: |
| 633 | """Return True if `node` holds a tuple.""" |
| 634 | if node.type != syms.atom: |
| 635 | return False |
| 636 | gexp = unwrap_singleton_parenthesis(node) |
| 637 | if gexp is None or gexp.type != syms.testlist_gexp: |
| 638 | return False |
| 639 | |
| 640 | return True |
| 641 | |
| 642 | |
| 643 | def is_tuple_containing_walrus(node: LN) -> bool: |
no test coverage detected