]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94086)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Jun 2022 20:32:24 +0000 (13:32 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 20:32:24 +0000 (22:32 +0200)
commit1b8aa7aafd2ac07836777707fd9ba5ffb353eb0c
tree2522e6300a8d7784f7def20a0a3772c50df5a4e9
parent4b2d7f3f4e160fdb482eefa377882d1c2c8ccb1b
gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94086)

Because of the way wrap_descr_get is written, the second argument
to __get__ methods implemented through the wrapper is always
optional.
(cherry picked from commit 4e08fbcfdfa57ea94091aabdd09413708e3fb2bf)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Lib/test/test_types.py
Misc/NEWS.d/next/Core and Builtins/2022-05-20-09-25-34.gh-issue-93021.k3Aji2.rst [new file with mode: 0644]
Objects/typeobject.c