(obj, p, cycle)
| 639 | the default pprint for tuples and lists. |
| 640 | """ |
| 641 | def inner(obj, p, cycle): |
| 642 | if cycle: |
| 643 | return p.text(start + '...' + end) |
| 644 | step = len(start) |
| 645 | p.begin_group(step, start) |
| 646 | for idx, x in p._enumerate(obj): |
| 647 | if idx: |
| 648 | p.text(',') |
| 649 | p.breakable() |
| 650 | p.pretty(x) |
| 651 | if len(obj) == 1 and isinstance(obj, tuple): |
| 652 | # Special case for 1-item tuples. |
| 653 | p.text(',') |
| 654 | p.end_group(step, end) |
| 655 | return inner |
| 656 | |
| 657 |
nothing calls this directly
no test coverage detected
searching dependent graphs…