Repository navigation
style(cosmo): unstringify annotations - #18358
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.
|
e1410a0 to
38e2bd6
Compare
ff6acc7 to
8d12bf9
Compare
8d12bf9 to
1f93e78
Compare
1f93e78 to
01799d4
Compare
eerovaher
left a comment
There was a problem hiding this comment.
There is a from __future__ import annotations statement in astropy/cosmology/units.py you've missed.
Signed-off-by: nstarman <[email protected]>
01799d4 to
04ce0c7
Compare
eerovaher
left a comment
There was a problem hiding this comment.
It is good to avoid stringified annotations wherever possible and the reduced line count is a nice bonus.
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
|
Anyone willing to do manual backport? If not, please change milestone. Chances of downstream pipelines etc inheriting cosmology doc probably quiet low? |
(cherry picked from commit 7f3ed7c) Signed-off-by: nstarman <[email protected]> # Conflicts: # astropy/cosmology/units.py
|
Done in #18383 |
…v7.1.x Backport PR #18358 on branch v7.1.x (style(cosmo): unstringify annotations)
This PR unstringifies most annotations and makes them parseable at runtime.
This has 2 benefits: