mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed warnings for star unpacking in set literals
This commit is contained in:
@@ -10,3 +10,6 @@ print({**f()})
|
||||
print({**f(), 3: 4})
|
||||
print({1: 2, **f()})
|
||||
print({**f(), **f()})
|
||||
print({1, 2, *(3, 4)})
|
||||
print({*(1, 2), 3})
|
||||
print({*(1, 2)})
|
||||
|
||||
@@ -363,4 +363,85 @@ PyFile:UnpackingExpressions.py
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiElement(Py:RBRACE)('}')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiWhiteSpace('\n')
|
||||
PyExpressionStatement
|
||||
PyCallExpression: print
|
||||
PyReferenceExpression: print
|
||||
PsiElement(Py:IDENTIFIER)('print')
|
||||
PyArgumentList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PySetLiteralExpression
|
||||
PsiElement(Py:LBRACE)('{')
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('1')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('2')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyStarExpression
|
||||
PsiElement(Py:MULT)('*')
|
||||
PyParenthesizedExpression
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyTupleExpression
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('3')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('4')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiElement(Py:RBRACE)('}')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiWhiteSpace('\n')
|
||||
PyExpressionStatement
|
||||
PyCallExpression: print
|
||||
PyReferenceExpression: print
|
||||
PsiElement(Py:IDENTIFIER)('print')
|
||||
PyArgumentList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PySetLiteralExpression
|
||||
PsiElement(Py:LBRACE)('{')
|
||||
PyStarExpression
|
||||
PsiElement(Py:MULT)('*')
|
||||
PyParenthesizedExpression
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyTupleExpression
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('1')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('2')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('3')
|
||||
PsiElement(Py:RBRACE)('}')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiWhiteSpace('\n')
|
||||
PyExpressionStatement
|
||||
PyCallExpression: print
|
||||
PyReferenceExpression: print
|
||||
PsiElement(Py:IDENTIFIER)('print')
|
||||
PyArgumentList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PySetLiteralExpression
|
||||
PsiElement(Py:LBRACE)('{')
|
||||
PyStarExpression
|
||||
PsiElement(Py:MULT)('*')
|
||||
PyParenthesizedExpression
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyTupleExpression
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('1')
|
||||
PsiElement(Py:COMMA)(',')
|
||||
PsiWhiteSpace(' ')
|
||||
PyNumericLiteralExpression
|
||||
PsiElement(Py:INTEGER_LITERAL)('2')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiElement(Py:RBRACE)('}')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
Reference in New Issue
Block a user