hadialqattan / pycln

A formatter for finding and removing unused import statements.

Home Page:https://hadialqattan.github.io/pycln

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Python 3.12 types support

hippalectryon-0 opened this issue · comments

Problem:

python 3.12 valid syntax such as type vec2 = np.ndarray[(2,), float] is detected as a SyntaxError by pycln, although it is not.

Hey @hippalectryon-0, could you confirm that the master branch fixes this problem please?

Thanks.

@hippalectryon-0 please checkout v2.4.0

I get error: cannot format temp.py: Cannot parse: 3:5: type vec2 = np.ndarray[(2,), float]