@@ -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