Missing types in the typing module
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
Research direction
Read transcrypt/modules/typing/init.py and reproduce the -xr example using src/test.js. Confirm that the referenced typing names are available from generated src/typing.js and the example no longer reports a missing export.
Written by the indexing model from the issue text.
Description
When using the -xr flag, if the missing types are used in the module, an error occurs:
✘ [ERROR] No matching export in "src/typing.js" for import "List"
src/test.js:4:13:
4 │ import {Any, List} from './typing.js';
╵ ~~~~
This can be corrected by adding the missing types to transcrypt/modules/typing/__init__.py
# Dummy to allow references and re-exports of typing classes
Any = 'Any'
Callable = 'Callable'
ClassVar = 'ClassVar'
Dict = 'Dict'
Iterator = 'Iterator'
List = 'List'
Optional = 'Optional'
Tuple = 'Tuple'
Type = 'Type'
Union = 'Union'
#etc...
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 218
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TranscryptOrg/Transcrypt
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
TranscryptOrg/Transcrypt#913 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
TranscryptOrg/Transcrypt#911 · 2 comments ·
-
IS: bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TranscryptOrg/Transcrypt#908 ·
-
SUB: documentation
Difficulty 1/5 Under an hour Newbie friendliness 62/100
TranscryptOrg/Transcrypt#656 · 7 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
TranscryptOrg/Transcrypt#914 ·
All issues in TranscryptOrg/Transcrypt
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·