Repository navigation
feat: scale factor - #17151
feat: scale factor#17151
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.
|
|
Also, I don't think I am qualified to review typing stuff. I don't dabble with it much. |
5bb14a0 to
a29c8df
Compare
Fixed the Sphinx warnings! |
| Parameters | ||
| ---------- | ||
| z : Quantity-like ['redshift'], array-like | ||
| z : Quantity-like ['redshift'], array-like, positional-only |
There was a problem hiding this comment.
Do you consider this an oversight from #16597 ? My understanding was that it was best to avoid this annotation over the deprecation period. If you disagree, I think it should be changed consistently.
There was a problem hiding this comment.
Hm. Yes. If the method raises a warning when passed by key word, it's probably best to tell users it's positional-only.
Let's change them all in a followup PR.
| Returns | ||
| ------- | ||
| a : ndarray or float | ||
| ndarray or float |
There was a problem hiding this comment.
this doesn't seem consistent with the added annotation (no Quantity ?)
There was a problem hiding this comment.
It technically is (Q subclasses ndarray), but I agree Q should be added explicitly
a29c8df to
c89c351
Compare
|
Not quite.
|
|
Fixed once more! |
|
Yay! Thanks @neutrinoceros |
|
(My approval should turn green very soon 😀) |
|
It is green now. I'll rebase this for you and turn on auto-merge |
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
d6e9fd1 to
64221e8
Compare
Part of #17150
This one is just docstrings + minimal typing. The mixin was already separated out.