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

Improve management of optional imports #154

Open
rhugonnet opened this issue Jun 24, 2021 · 1 comment
Open

Improve management of optional imports #154

rhugonnet opened this issue Jun 24, 2021 · 1 comment
Labels
enhancement Feature improvement or request

Comments

@rhugonnet
Copy link
Contributor

Yes, I thought about the same thing (actually Fabien did!). I was quickly browsing to see if there's a good practice on how to handle optional imports. The only improvement I could find is to use importlib to check if a module exists or not: https://docs.python.org/3/library/importlib.html#importlib.abc.MetaPathFinder.find_spec

Originally posted by @adehecq in #151 (comment)

@erikmannerfelt erikmannerfelt added the enhancement Feature improvement or request label Jul 2, 2021
@rhugonnet
Copy link
Contributor Author

rhugonnet commented Aug 10, 2023

Forgot this before releasing: we should move noisyopt to optional imports

EDIT: Done in #397

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

No branches or pull requests

2 participants