diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 9d9c6459..e2fd80bf 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -7,6 +7,7 @@

version 0.3.6

BugFixes

diff --git a/src/com/koxudaxi/pydantic/PydanticDataclassTypeProvider.kt b/src/com/koxudaxi/pydantic/PydanticDataclassTypeProvider.kt index 01469156..64ec40c0 100644 --- a/src/com/koxudaxi/pydantic/PydanticDataclassTypeProvider.kt +++ b/src/com/koxudaxi/pydantic/PydanticDataclassTypeProvider.kt @@ -24,7 +24,8 @@ class PydanticDataclassTypeProvider : PyTypeProviderBase() { referenceExpression: PyReferenceExpression, context: TypeEvalContext, ): PyType? { - return getPydanticDataclass(referenceExpression, context) + return getPydanticDataclass(referenceExpression, + TypeEvalContext.codeInsightFallback(referenceExpression.project)) }