-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PEP 690: Add flexibility to set_eager_imports() #2571
Conversation
This adds a callback to the proposed `importlib.set_eager_imports()`.
Looks reasonable to me. In practice the flexibility we've used at Meta is just to use regex matching on the module name, so we could also add direct support for |
Co-authored-by: Carl Meyer <carl@oddbird.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from a PEP editor perspective
Co-authored-by: Carl Meyer <carl@oddbird.net>
I can merge this unless you want Barry to take a look first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This adds a callback to the proposed
importlib.set_eager_imports()
.