Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-46032: Check types in singledispatch's register() at declaration time #30050

Merged

Commits on Dec 11, 2021

  1. bpo-46032: Check types in singledispatch's register() at declaration …

    …time
    
    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]).
    serhiy-storchaka committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    ca950df View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2021

  1. Configuration menu
    Copy the full SHA
    7d9cdfb View commit details
    Browse the repository at this point in the history
  2. Refactoring.

    serhiy-storchaka committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    f69b668 View commit details
    Browse the repository at this point in the history