-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
No error for bare asterisk after *args #13
Labels
bug
mypy got something wrong
Comments
I'll take this |
ghost
assigned doboy
Dec 13, 2012
JukkaL
added a commit
that referenced
this issue
Jul 24, 2014
Add missing Function to __all__ in runtime typing modules.
This is still up for grabs. |
This is an interesting one because there are cases that Python accepts that mypy doesn't as well, such as this: def f(*x, y): pass Also, notably, mypy's stub for print uses a syntax that is invalid in Python! >>> def print_(*values, *, sep=u' ', end=u'\n', file=None): pass
File "<stdin>", line 1
def print_(*values, *, sep=u' ', end=u'\n', file=None): pass
^
SyntaxError: invalid syntax I'm looking into it. I'm mostly done with a patch, but want to figure out what else mypy gets wrong here :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code is accepted by the parser, even though Python gives a syntax error:
The code should generate a parse error.
The text was updated successfully, but these errors were encountered: