Skip to content

functools.singledispatchmethod: add __call__ for better results #3899

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

Merged
merged 3 commits into from
Apr 4, 2020

Conversation

hauntsaninja
Copy link
Collaborator

It doesn't actually have call, it does some descriptor stuff, but
this makes things work. _SingleDispatchCallable has a call too,
which is what this mirrors.

Fixes #3898

It doesn't actually have __call__, it does some descriptor stuff, but
this makes things work. _SingleDispatchCallable has a __call__ too,
which is what this mirrors.

Fixes python#3898
@cosenal
Copy link

cosenal commented Apr 2, 2020

@hauntsaninja Thanks, that was quick! I see Travis is failing on stubtest py38 though 🤔

@JelleZijlstra JelleZijlstra merged commit 591522f into python:master Apr 4, 2020
@hauntsaninja hauntsaninja deleted the singdisp branch April 4, 2020 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@singledispatchmethod fails mypy validation
3 participants