◐ Shell
clean mode source ↗

[3.10] bpo-45678: Add ``functools.singledispatchmethod`` tests (GH-29328) by miss-islington · Pull Request #29390 · python/cpython

(cherry picked from commit 5a14929)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

AlexWaygood added a commit to AlexWaygood/cpython that referenced this pull request

Nov 3, 2021
…od` bug

This PR fixes a bug in the 3.9 branch where
``functools.singledispatchmethod`` did not properly wrap attributes such as
``__name__``, ``__doc__`` and ``__module__`` of the target method. It also
backports tests already merged into the 3.11 and 3.10 branches in #python#29328 and
python#29390.

ambv added a commit that referenced this pull request

Nov 4, 2021
…od` bug (GH-29394)

This PR fixes a bug in the 3.9 branch where
``functools.singledispatchmethod`` did not properly wrap attributes such as
``__name__``, ``__doc__`` and ``__module__`` of the target method. It also
backports tests already merged into the 3.11 and 3.10 branches in #29328 and
#29390.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>