Repository navigation
types(cosmo): vectorize_redshift_method - #18801
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 |
f7439dc to
f497e17
Compare
|
CI failure appears to be unrelated. |
|
Thanks @neutrinoceros for reviewing the preceding PR. |
ec893c8 to
ace83eb
Compare
|
Could do, but this is the standard way to build a decorator with keyword arguments (e.g. https://realpython.com/primer-on-python-decorators/#creating-decorators-with-optional-arguments tutorial), so this is a pretty standard type annotation pattern. Refactoring changes application of |
|
@neutrinoceros WDYT of the new decorator? Refactoring changes application of vectorize_redshift_method from @vectorize_redshift_method to @ vectorize_redshift_method(), which is a little non-standard. |
|
Hi humans 👋 - this pull request hasn't had any new commits for approximately 4 months. I plan to close this in 30 days if the pull request doesn't have any new commits by then. In lieu of a stalled pull request, please consider closing this and open an issue instead if a reminder is needed to revisit in the future. Maintainers may also choose to add keep-open label to keep this PR open but it is discouraged unless absolutely necessary. If this PR still needs to be reviewed, as an author, you can rebase it to reset the clock. If you believe I commented on this pull request incorrectly, please report this here. |
|
Ping @neutrinoceros. I'll rebase if it looks good. |
|
Ping @neutrinoceros for thoughts. I'm still not sold on the |
neutrinoceros
left a comment
There was a problem hiding this comment.
To me, having a slightly uglier decorator is worth avoiding a union in a return type. Also, it's private API so we can change it again later if we find a better way.
I can approve this in the current state, but can't merge yet because there's a conflict. Feel free to self-merge once it's resolved, though
|
I'm going to close this pull request as per my previous message. If you think what is being added/fixed here is still important, please remember to open an issue to keep track of it. Thanks! If this is the first time I am commenting on this issue, or if you believe I closed this issue incorrectly, please report this here. |
|
ah, well, feel free to re-open this |
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
6883fe0 to
87a3229
Compare
|
Re-opening and rebasing! |
Add type annotations to
vectorize_redshift_method.