Files
openide/python/testData/inspections/PyStringFormatInspection/NewStyleCallExpressionArgument.py
Valentina KiryushkinaandValentina Kiryushkina 1dfb4dcdee PY-21164 PY-8325 Fix false positives for packed collections inside collections in python 3.5
* Move indexed elements resolve from inspection to PySubstitutionChunkReference
* Resolve correctly to packed list/tuple inside list/tuple, to packed dict inside dict
* Update tests
2017-05-15 14:37:55 +03:00

14 lines
513 B
Python

def f(mode):
if mode == "i":
return 1
elif mode == "f":
return 1.0
elif mode == "s":
return ""
elif mode == "b":
return True
<warning descr="Too few arguments for format string">"{}{}"</warning>.format(f("i"))
<warning descr="Too few arguments for format string">"{}{}"</warning>.format(f("f"))
<warning descr="Too few arguments for format string">"{}{}"</warning>.format(f("s"))
<warning descr="Too few arguments for format string">"{}{}"</warning>.format(f("b"))