Skip to content

Commit

Permalink
Merge pull request #366 from koxudaxi/fix_pydantic_dataclass_type_pro…
Browse files Browse the repository at this point in the history
…vider_error

Fix PydanticDataclassTypeProvider.kt error
  • Loading branch information
koxudaxi committed Sep 6, 2021
2 parents 9b012b5 + b81e78c commit cd5b608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<h2>version 0.3.6</h2>
<p>BugFixes</p>
<ul>
<li>Fix PydanticDataclassTypeProvider.kt error [#366]</li>
<li>Fix Outdated Stub in index error on PydanticAnnotator.kt [#363]</li>
<li>Fix NullPointerException in PydanticTypeCheckerInspection.kt [#362]</li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion src/com/koxudaxi/pydantic/PydanticDataclassTypeProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class PydanticDataclassTypeProvider : PyTypeProviderBase() {
referenceExpression: PyReferenceExpression,
context: TypeEvalContext,
): PyType? {
return getPydanticDataclass(referenceExpression, context)
return getPydanticDataclass(referenceExpression,
TypeEvalContext.codeInsightFallback(referenceExpression.project))
}


Expand Down

0 comments on commit cd5b608

Please sign in to comment.