-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Incorrect overload handling for Any #139
Labels
bug
Something isn't working
Comments
There currently seems to be no way to fix this for both MyPy and PyRight. See the open StackOverflow question How to overload functions to handle Any-arguments? for the current status quo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Since
typing.Any
matches literally anything, for@overload
that start with special cases these are always picked in untyped code. Instead,@overload
should prefer the most generic, conservative case.This is related to and got my attention by the pandas concat type hints bug that causes
Any -> ???
paths to selectNone -> Never
overloads.Minimal Reproducible Example
Request Assignment [Optional]
The text was updated successfully, but these errors were encountered: