We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 780d0de commit e8deafdCopy full SHA for e8deafd
src/main/kotlin/space/whitememory/pythoninlayparams/types/hints/HintResolver.kt
@@ -450,9 +450,11 @@ enum class HintResolver {
450
451
if (
452
typeAnnotation == null
453
+ || (element is PyFunction && element.isAsync) // TODO: Handle async functions properly
454
|| (element is PyFunction && typeAnnotation is PyNoneType)
455
|| ((element is PyFunction || element is PyTargetExpression) && (element as PyTypeCommentOwner).typeCommentAnnotation != null)
456
|| (element is PyAnnotationOwner && element.annotation != null)
457
+ || (element is PyFunction && !element.textContains(":".single()))
458
) {
459
return false
460
}
0 commit comments