| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
I marked this for backport because in general we backport documentation mistakes. However, I also see you changed the signature of __new__. Can that be backported?
Thanks!
Sorry, something went wrong.
|
Also, GHA is down right now. So if you need CI, we might have to wait it out. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
This pull request used AI to audit the astropy/time subpackage for discrepancies in function arguments and docstrings.
TimeBase._apply (stale docstring)
format and cls were promoted to explicit keyword-only params in the code, but the docstring still described format as something arriving via kwargs and cls was undocumented entirely. Documented both properly and dropped the stale sentence.
TimeDelta.__new__ (dead parameter)
location=None was in the signature but not the class docstring. Here the docstring was right and the signature was wrong: location is copy-paste residue from Time.__new__ (where it's real). TimeDelta.__init__ never accepted it, so TimeDelta(..., location=...) always raised TypeError — the parameter was unreachable. Removing this parameter does not change the outcome of providing location which would still be a TypeError.