Describe the bug
When there is a level of indirection (by passing a model type to a function, for example), then PyCharm does not display the model fields as parameter info but just a generic string.
To Reproduce
Compare how "View -> Parameter Info" look like for m()
and Model()
from pydantic import BaseModel
class Model(BaseModel):
vlan_id: int
name: str
def test_():
def do(m: type[Model]):
Model()
m()
do(Model)
Expected behavior
In both cases, PyCharm should display the model fields
Environments (please complete the following information):
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