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
avoid potential circular ref by lazy import #1213
Conversation
I suppose this could be considered an API break since this will fail after this PR: from metpy.calc.tools import height_to_pressure_std shrug. |
This pull request fixes 15 alerts when merging 5ea3cd0 into 8c1ca0a - view on LGTM.com fixed alerts:
|
Do you mean from |
From |
Yeah we'll add it to our running list of brownie points. I'll shrug with you on this "API break". If users were importing it this way, they shouldn't have been. |
I only consider |
@akrherz What prompted you to see this? All the complaints from LGTM? |
UGH. I hadn't even seen that issue. Thanks for fixing! |
Description Of Changes
Future proof code to allow
metpy.calc.basic
to import functions inmetpy.calc.tools
without a potential circular import.Checklist