diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2021-12-25 14:16:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-25 14:16:14 +0200 |
| commit | 078abb676cf759b1e960f78390b6e80f256f0255 (patch) | |
| tree | cd5a2e2271e099f1f5117e34d3001dce8b2c005b /Objects/exceptions.c | |
| parent | 1b30660c3b40da557050948ac8635f2dc50c4ee2 (diff) | |
| download | cpython-git-078abb676cf759b1e960f78390b6e80f256f0255.tar.gz | |
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 'Objects/exceptions.c')
0 files changed, 0 insertions, 0 deletions
