You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
'Unexpected argument' warning when the pydantic model is configured to received extra parameters. The guys from pycharm send me here: pycharm issue link
To Reproduce
Define a pydantic model with model_config = ConfigDict(extra="allow"). Initialize the object with an extra parameter that its not defined in the mode.
Expected behavior
There should be no warning for extra parameter, or at least a different warning.
Screenshots
Environments (please complete the following information):
IDE: PyCharm 2024.2.1 (Professional Edition)
OS: Sonoma 14.6.1
Pydantic Version: 2.4.2
Plugin version: 0.4.15
The text was updated successfully, but these errors were encountered:
Describe the bug
'Unexpected argument' warning when the pydantic model is configured to received extra parameters. The guys from pycharm send me here: pycharm issue link
To Reproduce
Define a pydantic model with
model_config = ConfigDict(extra="allow")
. Initialize the object with an extra parameter that its not defined in the mode.Expected behavior
There should be no warning for extra parameter, or at least a different warning.
Screenshots
Environments (please complete the following information):
The text was updated successfully, but these errors were encountered: