You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to validate the following example straight from the docs -- Here I renamed the two methods _ from the example to _int and _bool to obviate an issue already reported, i.e., python/mypy#2904
When I run mypy checks on this file, I get the following errors:
negator.py:17: error: "singledispatchmethod[Any]" not callable
negator.py:18: error: "singledispatchmethod[Any]" not callable
Found 2 errors in 1 file (checked 1 source file)
Python 3.8.2
mypy 0.770
The text was updated successfully, but these errors were encountered:
hauntsaninja
pushed a commit
to hauntsaninja/typeshed
that referenced
this issue
Apr 2, 2020
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.
Fixespython#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#3898
I am trying to validate the following example straight from the docs -- Here I renamed the two methods
_
from the example to_int
and_bool
to obviate an issue already reported, i.e., python/mypy#2904When I run mypy checks on this file, I get the following errors:
Python 3.8.2
mypy 0.770
The text was updated successfully, but these errors were encountered: