mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
PY-40651 Fix review remarks
GitOrigin-RevId: b3dd6ed557294cfffe3bd8e80e28b6dff95adfc6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
582e1415b1
commit
d4cbcee60b
@@ -164,9 +164,9 @@ object PyCompletionFeatures {
|
||||
|
||||
fun getNumberOfOccurrencesInScope(kind: PyCompletionMlElementKind, contextFeatures: ContextFeatures, lookupString: String): Int? {
|
||||
return when (kind) {
|
||||
in arrayOf(PyCompletionMlElementKind.FUNCTION,
|
||||
PyCompletionMlElementKind.TYPE_OR_CLASS,
|
||||
PyCompletionMlElementKind.FROM_TARGET) ->
|
||||
PyCompletionMlElementKind.FUNCTION,
|
||||
PyCompletionMlElementKind.TYPE_OR_CLASS,
|
||||
PyCompletionMlElementKind.FROM_TARGET ->
|
||||
contextFeatures.getUserData(PyNamesMatchingMlCompletionFeatures.statementListOrFileNamesKey)
|
||||
?.let { it[lookupString] }
|
||||
PyCompletionMlElementKind.NAMED_ARG ->
|
||||
|
||||
Reference in New Issue
Block a user