diff options
| author | Alex Waygood <Alex.Waygood@Gmail.com> | 2021-10-28 16:02:04 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-28 16:02:04 (GMT) |
| commit | 97388c204b557f30e48a2b2ef826868702204cf2 (patch) | |
| tree | c6e20a9bb0e3da86ebd1777350a1694afafa3779 /Python/pythonrun.c | |
| parent | 8365a5b5abe51cbe4151d89a5d0a993273320067 (diff) | |
| download | cpython-97388c204b557f30e48a2b2ef826868702204cf2.zip cpython-97388c204b557f30e48a2b2ef826868702204cf2.tar.gz cpython-97388c204b557f30e48a2b2ef826868702204cf2.tar.bz2 | |
[3.9] bpo-39679: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug (GH-29087)
This commit fixes a bug in the 3.9 branch where stacking
`@functools.singledispatchmethod` on top of `@classmethod` or `@staticmethod`
caused an exception to be raised if the method was registered using
type-annotations rather than `@method.register(int)`. Tests for this scenario
were added to the 3.11 and 3.10 branches in #29034 and #29072; this commit
also backports those tests to the 3.9 branch.
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
