We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 249a9f4 commit 9b1d335Copy full SHA for 9b1d335
1 file changed
src/main/kotlin/space/whitememory/pythoninlayparams/types/hints/HintResolver.kt
@@ -60,6 +60,12 @@ enum class HintResolver {
60
typeEvalContext: TypeEvalContext,
61
settings: PythonVariablesInlayTypeHintsProvider.Settings
62
): Boolean {
63
+ val assignedValue = PyUtil.peelArgument(element.findAssignedValue())
64
+
65
+ if (assignedValue is PyPrefixExpression) {
66
+ return shouldShowTypeHint(assignedValue.operand as PyElement, typeEvalContext)
67
+ }
68
69
return shouldShowTypeHint(element, typeEvalContext)
70
}
71
},
0 commit comments