Consider the following code:
s = 'ab{}cd{mykey}ef{}gh'.format('01', '23', mykey='45')
print(s)
There are 3 placeholders: two positional and one keyword. I've provided enough arguments and the script runs normally, producing the following output:
ab01cd45ef23gh
But PyCharm warns me the following:
My questions are:
- Why PyCharm warns that?
- Should I disable that warning, and how?
- Or, maybe this kind of code (mixed positional and keyword placeholder) is deprecated by Python? Any document says that?
I'm using PyCharm Community 2018.1 EAP and Python 3.7.5
