-
-
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
TypeError: __init__() missing required argument 'default' (pos 6) #15485
Comments
The traceback indicates that this is an issue in pydantic's mypy plugin rather than mypy itself. Are you using the latest version of pydantic? If not, does it still reproduce with the latest version? |
Please update |
Closing based on what @cdce8p says. If there's still a problem with the latest version of pydantic, best to open an issue over at the pydantic repo, since this is a problem with the pydantic mypy plugin rather than with core mypy :) |
Technically, one of my mypy PR broke it. 😅 But, at least for pydantic, I already contributed the fix. |
Ah -- worth posting in #6617, perhaps? :) |
I didn't change the API, only added a new required argument to |
Yup. Still might be nice to do so as a courtesy to plugin authors, though, if there's a chance it might break other plugins 👍 |
Done #6617 (comment) |
Thank you <3 |
This one resolves the issue with pydantic not being comaptible with newest version of mypy (1.4.1): python/mypy#15485 (comment)
This one resolves the issue with pydantic not being comaptible with newest version of mypy (1.4.1): python/mypy#15485 (comment)
This one resolves the issue with pydantic not being comaptible with newest version of mypy (1.4.1): python/mypy#15485 (comment)
Crash Report
I tried to run
mypy --show-traceback
since it is breaking on version 1.4.0 (I was using version 1.3.0 before)(Tell us what happened.)
Traceback
To Reproduce
(Write what you did to reproduce the crash. Full source code is
appreciated. We also very much appreciate it if you try to narrow the
source down to a small stand-alone example.)
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: