LibCST icon indicating copy to clipboard operation
LibCST copied to clipboard

Codemod idea: change annotation strings to not strings

Open disconnect3d opened this issue 1 year ago • 0 comments

Latest Python version allows to change:

def foo() -> "A":
    ...

into:

from __future__ import annotations

def foo() -> A:
    ...

It would be nice if there is a codemod that removes the quotations/string markers from annotations so that one can fully use the annotations future feature ;).

disconnect3d avatar Jul 25 '23 22:07 disconnect3d