Skip to content

Commit 291067e

Browse files
committed
Make minor corrections
1 parent d2b5a20 commit 291067e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ tasks {
7878
}
7979

8080
publishPlugin {
81+
dependsOn("patchChangelog")
8182
token.set(System.getenv("PUBLISH_TOKEN"))
83+
channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first()))
8284
}
8385
}

src/main/kotlin/space/whitememory/pythoninlayparams/PythonInlayHintsProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PythonInlayHintsProvider : InlayParameterHintsProvider {
4040

4141
// Handle lambda expression calls
4242
if (resolved is PyTargetExpression) {
43-
// Use the target to find the lambda expression object, and assign it for making hints
43+
// Use the target to find the lambda expression object, and assign it to get its parameters up ahead
4444
resolved = PsiTreeUtil.getNextSiblingOfType(resolved, PyLambdaExpression::class.java) ?: return inlayInfos
4545
}
4646

@@ -77,7 +77,7 @@ class PythonInlayHintsProvider : InlayParameterHintsProvider {
7777
if (param is PyNamedParameter && param.isPositionalContainer) {
7878
// This is an *args parameter that takes more than one argument
7979
// So we stop the further processing of this call expression
80-
inlayInfos.add(InlayInfo("...${paramName}", arg.textOffset))
80+
inlayInfos.add(InlayInfo("...$paramName", arg.textOffset))
8181
return inlayInfos
8282
}
8383

@@ -93,7 +93,7 @@ class PythonInlayHintsProvider : InlayParameterHintsProvider {
9393

9494
/**
9595
* Get the parameters of the element, but filter out the ones that are not needed.
96-
* For example, if the element is a class init method, we don't want to show the __self__ parameter.
96+
* For example, if the element is a class method, we don't want to show the __self__ parameter.
9797
*/
9898
private fun getElementFilteredParameters(element: PsiElement): List<PyParameter> {
9999
element.children.forEach {

0 commit comments

Comments
 (0)