mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 11:42:40 +07:00
There are two important changes: Based on the implementation at https://github.com/python/cpython/blob/master/Objects/stringlib/unicode_format.h#L82 I have added two new warning messages to PyStringFormatInspection, which detect changes between manual and automatic field numbering. I have also fixed the way PySubstitutionChunkReference uses myPosition field to refer to the correct positional argument. It uses the explicitly specified position, if present, or the auto-numbered one otherwise. I have tried to fix all the visible regressions introduced by this change.
3 lines
87 B
Python
3 lines
87 B
Python
x = '{a} {}'.format(6, a=2)
|
|
print("{} {other} {}".format("one", "two", other="OTHER"))
|