Instagram / Instagram/LibCST

Codemod idea: change annotation strings to not strings

Open
#982 0 comments 0 reactions 0 assignees View on GitHub
codemod enhancement
Dominant language
Python
Stars
1.9k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

Latest Python version allows to change:

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

into:
```py
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 ;).

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.