mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 04:45:04 +07:00
* Move indexed elements resolve from inspection to PySubstitutionChunkReference * Resolve correctly to packed list/tuple inside list/tuple, to packed dict inside dict * Update tests
18 lines
442 B
Python
18 lines
442 B
Python
def f():
|
|
return [1, 2, 3]
|
|
|
|
"{foo[1]}".format(foo=f())
|
|
<warning descr="Too few arguments for format string">"{foo[3]}"</warning>.format(foo=f())
|
|
|
|
def g():
|
|
return 1, 2, 3
|
|
|
|
"{foo[1]:d}".format(foo=g())
|
|
<warning descr="Too few arguments for format string">"{foo[3]}"</warning>.format(foo=g())
|
|
|
|
def ff():
|
|
return g()
|
|
|
|
"{foo[1]}".format(foo=g())
|
|
<warning descr="Too few arguments for format string">"{foo[3]}"</warning>.format(foo=ff())
|