-
-
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 about repeated keyword argument #14585
Comments
Weirdly enough, looks like mypy used to warn about this, but this error was removed between v0.812 and v0.902 (based on runs in mypy-play). I'll go ahead and bisect! [will edit this] |
@A5rocks if your bisection proves mysterious, I think there might be some Python version difference in whatever mypy-play.net is using |
It does appear mysterious, I tried 53ec9f3 (very much before v0.812) and it passed without errors. I'm not sure the proper way to do this. |
If I had to guess, it would be something like mypy-play.net is running 0.812 with Python 3.8 and 0.902 with Python 3.9. Or something like that |
Possibly relevant:
|
That error does look like what mypy spit out! That would explain it, even if I can't on a cursory glance figure out where mypy-play would be overriding its default version of 3.10 (ymyzk/mypy-playground@c6d07eb) |
Consider this code:
Expected Behavior
Error from mypy like this:
SyntaxError: keyword argument repeated: a
Actual Behavior
At runtime:
Mypy's output:
Your Environment
mypy 1.0.0+dev.154fee110f274fe6214eff856b65d437ee299fdb (compiled: no)
(I didpip install -U git+https://github.com/python/mypy.git
several minutes ago)mypy.ini
(and other config files): nonePython 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
The text was updated successfully, but these errors were encountered: