Zsolt Dollenstein
Zsolt Dollenstein
I also think option 2 would make the most sense. I can make a followup PR to implement it
I think Pyright's behavior is correct here; essentially we're running into the [incompatible changes](https://peps.python.org/pep-0604/#incompatible-changes) section in PEP 604. Other than changing the matcher syntax to use something other than `|`...
3.13.0 beta 1 is expected to come out next week. @thereversiblewheel need help? :)
I'll try and get a new libcst release while on the pycon sprints now that #1141 has been merged
Gotta fix the type errors and this is good to go.
Gotta fix the type errors (looks like `Name.__init__` needs updating too) and this is good to go!
Happy to merge a keke PR for libcst, I was about to release a new version tomorrow but can wait a bit
FWIW CPython also chokes on this input: ``` ❯ py -m py_compile 'huge.txt' Sorry: RecursionError: maximum recursion depth exceeded during compilation ```
Fair enough. If anyone's interested in tackling this, here are a bunch of pointers: There's best-effort recursion depth checking that's defined here: https://github.com/Instagram/LibCST/blob/e9bad94d5868ba5a3919cc34e26665d40cdf9f91/native/libcst/src/parser/grammar.rs#L88 It's checked in a couple of places,...
See #906 also for `FlattenSentinel`-related typing bugs