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.
Environments (please complete the following information):
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too