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
Activity
hauntsaninja commentedon Aug 9, 2024
This is the same as many other issues, where mypy computes join between callables to
builtins.function. In this case join of[def (Any) -> Anyanddef (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 inextract_callable_typeto return a unionjohnslavik commentedon Aug 9, 2024
I've taken on the challenge of fixing this. It's my first time working with mypy, so bear with me or let me know if someone else fixes it.
jolaf commentedon Aug 9, 2024
Thanks!!
hauntsaninja commentedon Jan 1, 2025
This was fixed in #17903