summaryrefslogtreecommitdiffstats
path: root/Python/pyctype.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-12-25 12:16:14 (GMT)
committerGitHub <noreply@github.com>2021-12-25 12:16:14 (GMT)
commit078abb676cf759b1e960f78390b6e80f256f0255 (patch)
treecd5a2e2271e099f1f5117e34d3001dce8b2c005b /Python/pyctype.c
parent1b30660c3b40da557050948ac8635f2dc50c4ee2 (diff)
downloadcpython-078abb676cf759b1e960f78390b6e80f256f0255.zip
cpython-078abb676cf759b1e960f78390b6e80f256f0255.tar.gz
cpython-078abb676cf759b1e960f78390b6e80f256f0255.tar.bz2
bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050)
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]).
Diffstat (limited to 'Python/pyctype.c')
0 files changed, 0 insertions, 0 deletions