Repository navigation
deprecation attr - #15310
deprecation attr#15310
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
pllim
left a comment
There was a problem hiding this comment.
I didn't expect to see so much diff. I thought it would be a few lines to add a new attribute.
|
If you look at 12b5d46, then it's only a few lines. |
|
Can we separate the two into different PRs? 🙏 Also I don't think refactoring is necessary given that you already want to replace with yet another implementation down the road. |
Sure.
This code cleanup / improvement is cherry picked from #15301, which then just changes some more internals to use |
80b00bb to
4f8c9fd
Compare
pllim
left a comment
There was a problem hiding this comment.
Much cleaner, thanks! I'll let mhvk review since he requested it.
mhvk
left a comment
There was a problem hiding this comment.
Yes, this looks good! Should there be some test, though? E.g., I think it works on attributes indirectly, maybe worthwhile to test? I guess more generally: does it in fact work in your IDE?
|
I think you need to rebase to pick up RTD fix. |
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
5f3b51f to
267112e
Compare
|
It might be worth suggesting to VSCode to assume that anything marked by |


Adds the
__deprecated__attribute.Also cleans updeprecatedso that we don't re-define the helper functions every timedeprecatedis called.deprecatedstill redefines all functions on every call.