Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Python: Ability to import Edit #1186

Closed
enzo-inc opened this issue Jun 4, 2024 · 2 comments
Closed

[feature] Python: Ability to import Edit #1186

enzo-inc opened this issue Jun 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@enzo-inc
Copy link

enzo-inc commented Jun 4, 2024

⭐ Suggestion

It would be nice to be able to import Edit from ast_grep_py to be used in type annotations.

Current Behaviour:

from ast_grep_py import Edit

ImportError: cannot import name 'Edit' from 'ast_grep_py'

💻 Use Cases

from ast_grep_py import SgNode, Edit

def edit_node(node: SgNode) -> Edit: 
...
@enzo-inc enzo-inc added the enhancement New feature or request label Jun 4, 2024
@HerringtonDarkholme
Copy link
Member

Thanks for reporting! I will release a new version soon!

@HerringtonDarkholme
Copy link
Member

shipped in ver 0.22.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants