]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94590: add signatures to operator itemgetter, attrgetter, methodcaller (#94591)
authorErik Welch <erik.n.welch@gmail.com>
Thu, 6 Oct 2022 20:35:53 +0000 (15:35 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2022 20:35:53 +0000 (13:35 -0700)
commit1c4728cc299953c61e0e1cdb077eefccfd555b87
tree236326c95e51eaf9dd93077120cca98317e9197d
parenteffc25f7f25ae1ac053415addc584b050c022dcb
gh-94590: add signatures to operator itemgetter, attrgetter, methodcaller (#94591)

These were intentionally skipped when operator was updated to use the argument clinic:
https://github.com/python/cpython/issues/64385#issuecomment-1093641466

However, by not using the argument clinic, they missed out on getting signatures.
This is a narrow PR to update the docstrings so that `__text_signature__` can be
extracted from them.  Updating to use the argument clinic is beyond scope.

`methodcaller` uses `*args, **kwargs` to match variadic names used elsewhere,
including in `operator.call`.
Modules/_operator.c