| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The signature is (cosmo1, cosmo2, /, *, allow_equivalent). No out argument is accepted there or anywhere along the _comparison_decorator path, and cosmology_equal, which has the same structure, carries no such entry. [ci skip]
|
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.
|
Sorry, something went wrong.
|
Hm. The CI isn't running. 🤔 |
Sorry, something went wrong.
| shape that the inputs broadcast to. If not provided or None, a | ||
| freshly-allocated array is returned. | ||
|
|
||
| format : bool or None or str or tuple thereof, optional keyword-only |
There was a problem hiding this comment.
@nstarman what about this one?
Sorry, something went wrong.
There was a problem hiding this comment.
which one? format ?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, format is mentioned but not in signature. Is that expected?
Sorry, something went wrong.
There was a problem hiding this comment.
hm. Nor in cosmology_equal. Those were clearly intended plans, but I don't recollect the details.
Sorry, something went wrong.
There was a problem hiding this comment.
Might as well address that also in this PR?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Fixes #20208.
_cosmology_not_equal has the signature
and documents an out parameter, described as "a location into which the result is stored", which is not accepted here or anywhere along the _comparison_decorator path — the wrapper forwards **kwargs to the wrapped function, which would raise on out.
format in the same section stays: it is not in the signature either, but _comparison_decorator consumes it and its own Notes say every decorated function should document it. out has no such counterpart, and cosmology_equal directly above — same decorator, same signature — has never carried the entry.
Docstring only — no signature, call site, or behaviour is touched.
Changelog
Not added: docstring only, and the function is private, so nothing user-visible changes. Per CONTRIBUTING.md, minor documentation updates do not need a fragment. Happy to add one or take the no-changelog-entry-needed label if you prefer.