-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Type a Callable Arg without typing the positional args before it #5017
Comments
This is a known limitation, we have an existing proposal, but syntax that you propose here was not considered I think. This is relatively low priority on our roadmap, so labelling accordingly (unless it is very easy to implement as a temporary workaround). |
I think it should be first decided what syntax and behaviour are expected then someone could more easily pickup and implement it |
See python/typing#239 and python/typing#264 for previous discussion. |
I've stumbled upon them but couldn't find what was settled. Was there an agreed syntax? |
This is the problem :-) There is still not 100% on the preferred syntax. |
I'm leaning towards the |
VarArg, KwArg, etc are deprecated. PEP 612 now exists. Discussion on further features is best done at github.com/python/typing |
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
Required positional args may not appear after default, named or var args
VarArg()
or...
to represent the positional args beforeO
Do you see the same issue after installing mypy from Git master? Git is the same as release
The text was updated successfully, but these errors were encountered: