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
+ - Fix PydanticDataclassTypeProvider.kt error [#366]
- Fix Outdated Stub in index error on PydanticAnnotator.kt [#363]
- Fix NullPointerException in PydanticTypeCheckerInspection.kt [#362]
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))
}