-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Cleaner import checking #317
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
Conversation
* line too long * bad line breaking at operators (e.g., `*`) * continuation line over-intented
Note that default arguments are used in all function calls. This means that you can get some unexpected storage of previous defaults! It’s best practice not to do this.
IDEs hate this… besides, this is internal code. The important part is that we eventually validate our work by instantiating a `Figure`. We can use the publicly hidden `GraphObjectFactory` for this purpose.
This is a stand-alone module to the following: * Don’t import things until we need them * Keep all the information centralized * No possibility of circular imports by using this module
@chriddyp @cldougl @etpinard does this seem reasonable? I'm just using This is the important commit if you feel like checking this out 7cbd355 Chris, I'm trying to follow your momentum with untangling plot_options logic. I think there's a lot more work to be done 😅 |
I'm going to try and revisit this one if I end up with some quiet weekends. The way we currently do optional imports is sorta frustrating. 7cbd355 introduces a new way to tap into the |
Woo. Done in a different PR. |
PR 2: Use a single, central place to check whether optional deps are imported and get them from a central source.
(WIP still based off another cleanup branch #316)
This attempts to de-uglify how we do protected imports. One module to rule them all 💍
Todo: