Describe the bug
Plugin looses signature when a BaseModel
class is decorated.
To Reproduce
from typing import TypeVar
from pydantic import BaseModel
_T = TypeVar("_T")
def deco(obj: _T) -> _T:
return obj
@deco
class Model(BaseModel):
foo: int
if __name__ == '__main__':
a = Model()
Expected behavior
Plugin to infer type correctly and add auto completions to pycharm
Environments (please complete the following information):
Additional context
Without decorator, plugin works as inteneded
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