Describe the bug
If there is a model_config
field in a model, it is shown in the parameter info popup.
I believe this is noisy and maybe even incorrect. While it's not forbidden to pass the model config on instanciation, I would expect the model config to be declared where the model is declared and not at runtime.
To Reproduce
Open Parameter Info on Model()
from pydantic import BaseModel, ConfigDict
class Model(BaseModel):
base: str = ""
model_config = ConfigDict(
frozen=True,
extra="ignore",
populate_by_name=True,
from_attributes=True,
)
def test_():
Model()
Expected behavior
model_config
field is hidden in parameter info.
Screenshots
Environments (please complete the following information):
IDE: PyCharm 2024.1 EAP 9
OS: macOS 14
Pydantic Version: 2.6.4
Plugin version: 0.4.12
Additional context
Add any other context about the problem here.
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