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

Missing types in the typing module #843

Open
chrisyokum opened this issue Apr 14, 2023 · 0 comments
Open

Missing types in the typing module #843

chrisyokum opened this issue Apr 14, 2023 · 0 comments
Labels

Comments

@chrisyokum
Copy link

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...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants