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

Remove typing/annotations from input #163

Open
jayvdb opened this issue May 29, 2021 · 1 comment
Open

Remove typing/annotations from input #163

jayvdb opened this issue May 29, 2021 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented May 29, 2021

As type annotations and typing is getting added to lots of Python code as they convert to Python 3 only code, and this project doesnt intend to support that per #126 , perhaps this project could be enhanced to strip out typing and type annotations from the input as it is processing the input, so it can handle a Python 3 code which uses these.

Currently any import typing causes rapydscript to fail.

https://github.com/abarker/strip-hints has a reasonable implementation of this in Python, that might be used as a guide for what be needed to implement this natively in rapydscript-ng. It doesnt strip the typing import, but that doesn't seem to difficult, and I've raised it as a feature request at abarker/strip-hints#12

@kovidgoyal
Copy link
Owner

Not something I care about, but patches are welcome.

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

No branches or pull requests

2 participants