Repository navigation
DEPR: add a pending deprecation to Table.pformat's default values on arguments max_lines and max_width - #17179
neutrinoceros wants to merge 6 commits into
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 |
f5c917e to
16311cb
Compare
Table.pformat's default values on arguments max_lines and max_width
16311cb to
bfe7724
Compare
|
Whoops, this unearthed a couple broken test cases, fixed in #17180 |
bfe7724 to
b182923
Compare
|
rebased off of #17180 |
b182923 to
a03f4c9
Compare
|
@neutrinoceros - I think this has taken a wrong turn. Maybe others can chime in, but my understanding was that we just change to the This does introduce a "breaking change", but the idea was that in the strong majority of cases, the As you can see, forcing astropy tests to explicitly specify |
|
Oh... sorry I apparently misread something in the discussion and went down the wrong rabbit hole. |
|
Replaced by #17184 |
Description
Fixes #15828
A couple keys for reviewers (I'll generally refer to
max_linesandmax_widthas "max sizes"):BaseColumn.pformatfor consistency, but this has not been discussed on the issue. Hopefully this is also not controversial.pformatreturn values: there I thought that leaving the implicit defaults made more sense, so I defined a unique decorator to ignore the associated warnings in these cases. This decorator should be removed when the deprecation period is terminated.If this approach is consensual, I'll open a reminder issue to link back here for when we end the deprecation period.
Note that the branch is also written be be reviewable at a commit-by-commit level.
TODO: