Skip to content

Commit 24ac38b

Browse files
committed
intellij: fix getCallType
1 parent 5f57866 commit 24ac38b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

intellij/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
## [Unreleased]
66

7+
## [0.1.2] - 2023-01-12
8+
9+
### Fixed
10+
- All functions returning `Any`
11+
12+
## [0.1.1] - 2024-1-5
13+
714
### Fixed
815
- Constructors incorrectly returning `None`
916

intellij/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = org.basedsoft.plugins.basedtyping
44
pluginName = basedtyping
55
pluginRepositoryUrl = https://github.com/KotlinIsland/basedtyping
66
# SemVer format -> https://semver.org
7-
pluginVersion = 0.1.1
7+
pluginVersion = 0.1.2
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 233

intellij/src/main/kotlin/org/basedsoft/plugins/basedtyping/BasedTypingTypeProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private class BasedTypingTypeProvider : PyTypeProviderBase() {
3333

3434
override fun getCallType(function: PyFunction, callSite: PyCallSiteExpression, context: TypeEvalContext): Ref<PyType>? {
3535
val annotation = function.annotation?.value ?: return null
36-
return Ref.create(getType(annotation, context, simple = true))
36+
return getType(annotation, context, simple = true).ref()
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)