Skip to content

Commit 70db627

Browse files
committed
Compare arguments in lowercase
1 parent f04c70d commit 70db627

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
### Fixed
99
- Hints showing when placing a positional argument after keyword ones
1010
- Hints for classes that use `__new__`, like `datetime.datetime`
11+
- Arguments with the same name as the parameter, but in a different case, were still displayed
1112

1213
## [0.1.2] - 2022-07-18
1314
### Fixed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class PythonInlayHintsProvider : InlayParameterHintsProvider {
112112
*/
113113
private fun isHintNameValid(name: String, argument: PyExpression): Boolean {
114114
// TODO: More filters
115-
return name != argument.name && !name.startsWith("__") && name.length > 1
115+
return name != argument.name?.lowercase() && !name.startsWith("__") && name.length > 1
116116
}
117117

118118
/**

0 commit comments

Comments
 (0)