kovidgoyal / kovidgoyal/rapydscript-ng
Remove typing/annotations from input
- Dominant language
- C
- Stars
- 206
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
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 https://github.com/kovidgoyal/rapydscript-ng/issues/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 https://github.com/abarker/strip-hints/issues/12
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests; begin by tracing how rapydscript-ng processes Python input and compare the desired behavior with the referenced strip-hints implementation. Done means Python 3 input containing type annotations and an import of typing is accepted without causing rapydscript to fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, python
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100