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
DEP: special: improve deprecation of private modules named without underscore prefix #19469
Conversation
scipy/special/orthogonal.py
Outdated
return getattr(_orthogonal, name) | ||
return _sub_module_deprecation(sub_package="special", module="orthogonal", | ||
private_modules=["_orthogonal"], all=__all__, | ||
attribute=name) |
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.
mind the no-new-line here
scipy/special/sf_error.py
Outdated
return getattr(_sf_error, name) | ||
return _sub_module_deprecation(sub_package="special", module="sf_error", | ||
private_modules=["_sf_error"], all=__all__, | ||
attribute=name) |
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.
no new line here either
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.
Approved module the style nits that were pointed out (i.e. once those are fixed, consider it good to go). Thanks!
[skip ci] Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
0727df7
to
d172874
Compare
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.
The indentation change can be applied to all of the files, not just the one fixed above. Otherwise LGTM
…derscore prefix (scipy#19469) * DEP: special: improve deprecation of private modules named without underscore prefix * STY: fix style issues [skip ci] Co-authored-by: Lucas Colley <lucas.colley8@gmail.com> --------- Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
Reference issue
towards #18279
What does this implement/fix?
Currently, some deprecation warnings for private modules named without underscore prefixes are misleading. For example:
Before this pr:
After:
Additional information