Skip to content

Commit cf1577f

Browse files
authored
Merge pull request #350 from alek-sun/ifediaeva/pycharm-api-changes
PyCharm API changes
2 parents 6af60e8 + 5f1bb94 commit cf1577f

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = "1.5.10"
2+
ext.kotlin_version = "1.5.30"
33
repositories {
44
mavenCentral()
55
}
@@ -15,7 +15,7 @@ plugins {
1515

1616
intellij {
1717
pluginName = project.name
18-
version = "2021.2.1"
18+
version = "2021.2.2"
1919
type = "PC"
2020
updateSinceUntilBuild = false
2121
downloadSources = true
@@ -24,7 +24,7 @@ intellij {
2424

2525

2626
patchPluginXml {
27-
sinceBuild = "212.4746.13"
27+
sinceBuild = "212.5284.19"
2828
untilBuild = "212.*"
2929
}
3030

resources/META-INF/plugin.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<idea-plugin url="https://github.com/koxudaxi/pydantic-pycharm-plugin" require-restart="true">
22
<id>com.koxudaxi.pydantic</id>
33
<name>Pydantic</name>
4-
<version>0.3.7</version>
4+
<version>0.3.8</version>
55
<vendor email="koaxudai@gmail.com">Koudai Aono @koxudaxi</vendor>
66
<change-notes><![CDATA[
7+
<h2>version 0.3.8</h2>
8+
<p>Features</p>
9+
<ul>
10+
<li>PyCharm API changes [#350] by @alek-sun</li>
11+
Thanks to @alek-sun
12+
</ul>
713
<h2>version 0.3.7</h2>
814
<p>BugFixes</p>
915
<ul>

src/com/koxudaxi/pydantic/PydanticTypeCheckerInspection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class PydanticTypeCheckerInspection : PyTypeCheckerInspection() {
109109
val cachedAcceptableTypeMap = mutableMapOf<PyType, PyType?>()
110110
for ((argument, parameter) in PyCallExpressionHelper.getRegularMappedParameters(mappedParameters)) {
111111
val expected = parameter.getArgumentType(myTypeEvalContext)
112-
val promotedToLiteral = promoteToLiteral(argument, expected, myTypeEvalContext)
112+
val promotedToLiteral = promoteToLiteral(argument, expected, myTypeEvalContext, substitutions)
113113
val actual = promotedToLiteral ?: myTypeEvalContext.getType(argument)
114114
val strictMatched = matchParameterAndArgument(expected, actual, substitutions)
115115
val strictResult = AnalyzeArgumentResult(expected, actual, strictMatched)

0 commit comments

Comments
 (0)