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

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