Describe the bug
This feels related to #340, but after upgrading to v0.4.16, I'm getting errors in Pycharm related to having mutable default values. This is perfectly fine to do in Pydantic: https://docs.pydantic.dev/latest/concepts/fields/#mutable-default-values
To Reproduce
Steps to reproduce the behavior:
from typing import Any
from pydantic import BaseModel, Field
class MyModel(BaseModel):
my_attr: dict[str, Any] = {
"x": 1
}
Hover over; Pycharm shows as error:
Expected behavior
This should not be an error. Or really even a 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