mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[python] refactoring: Introduce a variable for old-style positional-only parameters
GitOrigin-RevId: f70f515759aa0e7351c5e017a30bf86944d46fa8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5381c8352f
commit
6cb3a633de
@@ -1032,7 +1032,8 @@ fun analyzeArguments(
|
||||
}
|
||||
else {
|
||||
val keywordArgument = keywordArguments.removeKeywordArgument(parameterName)
|
||||
if (keywordArgument != null && !(!hasSlashParameter && !seenStarArgs && parameterName != null && isPrivate(parameterName))) {
|
||||
val oldStylePositionalOnlyParam = !hasSlashParameter && !seenStarArgs && parameterName != null && isPrivate(parameterName)
|
||||
if (keywordArgument != null && !oldStylePositionalOnlyParam) {
|
||||
mappedParameters.put(keywordArgument, parameter)
|
||||
}
|
||||
else if (!variadicPositionalArguments.isEmpty() || !variadicKeywordArguments.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user