Skip to content

Commit 58654d3

Browse files
committed
Add a clarification comment
1 parent b46395a commit 58654d3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class PythonInlayHintsProvider : InlayParameterHintsProvider {
5555
resolved = if (initMethod != null) {
5656
initMethod
5757
} else {
58+
// Use the class attributes if there's no init with params in the parent classes
59+
// TODO: Make sure wrong attributes are not used
5860
classAttributes = resolved.classAttributes
5961
resolved.findMethodByName("__init__", true, evalContext) ?: resolved
6062
}

0 commit comments

Comments
 (0)