We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be useful to be able to import modules conditionally. Here is an example:
try: import _thread except ImportError: import _dummy_thread as _thread
To implement this we would probably need union module types and the ability to infer them in cases such as the above.
The text was updated successfully, but these errors were encountered:
We are using #649 to track this now.
Sorry, something went wrong.
try/except ImportError
No branches or pull requests
It would be useful to be able to import modules conditionally. Here is an example:
To implement this we would probably need union module types and the ability to infer them in cases such as the above.
The text was updated successfully, but these errors were encountered: