Instagram / Instagram/LibCST

Recursion limit exceeded while visiting implicit joins

Open
#409 3 comments 1 reaction 0 assignees View on GitHub
machinery
Dominant language
Python
Stars
1.9k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

Given `a.py` that looks like

```
x = (
"a"
"a"
"a"
... 397 more of that line ...
)
```

`python -m usort check a.py` fails. The transformer is pretty straightforward, https://github.com/facebookexperimental/usort/blob/main/usort/sorting.py#L347

I'm not sure if replacing body is causing the problem, or if it does this for any transform involving many implicit string joins.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.