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

__init__.py imports makes things confusing #8

Open
jbfaden opened this issue Apr 19, 2023 · 1 comment
Open

__init__.py imports makes things confusing #8

jbfaden opened this issue Apr 19, 2023 · 1 comment

Comments

@jbfaden
Copy link
Member

jbfaden commented Apr 19, 2023

Right now there's an init.py which imports five names from autoplot.autoplot, which makes it confusing because you can say both:

from autoplot import javaaddpath  # and
from autoplot.autoplot import javaaddpath

I'm not sure what the motivation was*, but it seems misguided and confusing now. * "Allow 'from autoplot import javaaddpath'" says the documentation.

@rweigel
Copy link
Contributor

rweigel commented Apr 19, 2023

Be careful with changing this b/c a change may break existing code.

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

No branches or pull requests

2 participants