summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_tkinter/test_misc.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-26 12:23:23 (GMT)
committerGitHub <noreply@github.com>2021-12-26 12:23:23 (GMT)
commit25a12aac4de819745dfc64664ba183a5784b5a81 (patch)
tree8ccba9387d1e22601ab406d2c32a9452a9592be8 /Lib/tkinter/test/test_tkinter/test_misc.py
parent07229054a129a72b4ffdf29252eb73c6154c0ccf (diff)
downloadcpython-25a12aac4de819745dfc64664ba183a5784b5a81.zip
cpython-25a12aac4de819745dfc64664ba183a5784b5a81.tar.gz
cpython-25a12aac4de819745dfc64664ba183a5784b5a81.tar.bz2
[3.9] bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) (GH-30254) (GH-30255)
The registry() method of functools.singledispatch() functions checks now the first argument or the first parameter annotation and raises a TypeError if it is not supported. Previously unsupported "types" were ignored (e.g. typing.List[int]) or caused an error at calling time (e.g. list[int]). (cherry picked from commit 078abb676cf759b1e960f78390b6e80f256f0255) (cherry picked from commit 03c7449fbc7c57f5e0365f234a0b65c1dde763f2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_misc.py')
0 files changed, 0 insertions, 0 deletions