]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118285: Fix signatures of operator.{attrgetter,itemgetter,methodcaller} instances...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Apr 2024 16:30:48 +0000 (19:30 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2024 16:30:48 +0000 (19:30 +0300)
commit444ac0b7a64ff6b6caba9c2731bd33151ce18ad1
tree572fd300a05e5a177da821c2afc371e3d2122f4a
parent51c70de998ead35674bf4b2b236e9ce8e89d17b4
gh-118285: Fix signatures of operator.{attrgetter,itemgetter,methodcaller} instances (GH-118316)

* Allow to specify the signature of custom callable instances of extension
  type by the __text_signature__ attribute.
* Specify signatures of operator.attrgetter, operator.itemgetter, and
  operator.methodcaller instances.
Lib/inspect.py
Lib/operator.py
Lib/test/test_inspect/test_inspect.py
Lib/test/test_operator.py
Misc/NEWS.d/next/Library/2024-04-26-14-53-28.gh-issue-118285.A0_pte.rst [new file with mode: 0644]
Modules/_operator.c