Repository navigation
API: change default behavior in Table.pformat and Column.pformat and add (pending) deprecation to Table.pformat_all - #17184
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 |
b36726e to
f881699
Compare
Table.pformat and Column.pformat and add (pending) deprecation to Table.pformat_all
f881699 to
9b1db24
Compare
taldcroft
left a comment
There was a problem hiding this comment.
Looks great, thanks! I just have some word-smithing suggestions. I think this should also get a What's new entry.
| -1 (the default) implies no truncation | ||
| pass None to ensure the output doesn't exceed the limits | ||
| of current terminal. |
There was a problem hiding this comment.
For this and other similar docstring changes:
| -1 (the default) implies no truncation | |
| pass None to ensure the output doesn't exceed the limits | |
| of current terminal. | |
| -1 (default) implies no limit, ``None`` implies using the | |
| height of the current terminal. |
|
|
||
| @deprecated( | ||
| since="7.0", | ||
| message="We are planning on deprecating Table.pformat_all", |
There was a problem hiding this comment.
| message="We are planning on deprecating Table.pformat_all", | |
| message="Table.pformat_all will be deprecated", |
There was a problem hiding this comment.
the phrasing I used is borrowed from the only other pending deprecation (Table.show_in_browser). I'm also not sure it's worth doing a pending deprecation if we're 100% sure that it will be deprecated; why not just deprecate it now then ?
There was a problem hiding this comment.
(I'm going to assume a direct deprecation is okay for this round of review, let me know if you want me to change it back)
edde4df to
e18a719
Compare
e18a719 to
21fbd75
Compare
taldcroft
left a comment
There was a problem hiding this comment.
Just some little documentation nits now, otherwise all good!
|
Needs a rebase. :-( |
222455d to
3a9d4cf
Compare
|
suggestions integrated and branch rebased ! |
|
Sorry, this needs a rebase as well. But now I have auto-merge enabled so it should go through! |
3a9d4cf to
d852be3
Compare
…add (pending) deprecation to Table.pformat_all
d852be3 to
778022f
Compare
|
@taldcroft , you need to approve for auto merge to happen. 😉 |
|
Something seems stuck, all required checks are green but auto-merge still didn't happen. I'll try to disable it an merge manually. Update: whoops, once again, beaten by @pllim 😀 |
|
Well, if you keep the auto-merge, it would have merged as soon as approval is granted. |
Description
Fixes #15828, replaces #17179
EDIT: Closes #17179