diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-12-25 12:16:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-25 12:16:14 (GMT) |
commit | 078abb676cf759b1e960f78390b6e80f256f0255 (patch) | |
tree | cd5a2e2271e099f1f5117e34d3001dce8b2c005b /Python/pyctype.c | |
parent | 1b30660c3b40da557050948ac8635f2dc50c4ee2 (diff) | |
download | cpython-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