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
Rework how we refine information from callable() (#4343)
Don't assume that something is *not* callable except when operating
on Union types.
Normally, when operating on an Instance that is not clearly callable,
construct a callable version of it by generating a fake subclass with a
__call__ method. When operating on Union types, continue treating
types that are not clearly callable as if they cannot be callable,
so type discrimination using callable() behaves as expected.
Fixes#3605
0 commit comments