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
This is the same as many other issues, where mypy computes join between callables to builtins.function. In this case join of [def (Any) -> Any and def (def (*Any, **Any) -> Any, Any) -> Any]. Happens to shows up in 1.11 because we now type check functools.partial more closely, but underlying issue is old. Seems tricky to turn the callsite in extract_callable_type to return a union
The following code:
produces the following output:
This looks like a false positive to me.
The text was updated successfully, but these errors were encountered: