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
{{ message }}
Repository navigation
Classes with __call__ defined should be a subtype of Callable #797
Activity
JukkaL commentedon May 5, 2016
Moved to 0.5 since this comes up pretty frequently.
margaret commentedon Jun 3, 2016
I'm going to start looking into this one.
margaret commentedon Jun 4, 2016
WIP at https://github.com/margaret/mypy/tree/user_defined_callable (thanks @rwbarton for helping)
Currently debugging broken tests, specifically
Does not work and returns
error: Argument 1 to "f" has incompatible type Callable[[Any, Any], Any]; expected "type"gvanrossum commentedon Jun 4, 2016
Have you tried putting a
pdb.set_trace()call inerrors.Errors.report()and tracing back to the cause of this message?
I believe
typeis special in some ways, maybe that's biting you?On Fri, Jun 3, 2016 at 7:33 PM, Margaret Sy [email protected]
wrote:
--Guido van Rossum (python.org/~guido)
gvanrossum commentedon Nov 28, 2016
Moving to an earlier milestone since the partial issue is kind of important.
JukkaL commentedon Jan 31, 2017
A related issue is the join of
Callableand an instance type that defines__call__(see #2779).gvanrossum commentedon May 5, 2017
@ilevkivskyi Are you still working on this? If not it's better to un-assign.
ilevkivskyi commentedon May 5, 2017
Protocols #3132 will fix this, no additional work here will be needed when they are merged.
requests: explicitly support AuthBase for Session.auth
requests: explicitly support AuthBase for Session.auth
ilevkivskyi commentedon Aug 19, 2017
This is now fixed by #3132
requests: add more accurate stubs for certain fields of the Session o…