SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

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]).
S
Serhiy Storchaka committed
078abb676cf759b1e960f78390b6e80f256f0255
Parent: 1b30660
Committed by GitHub <noreply@github.com> on 12/25/2021, 12:16:14 PM