Files
openide/python/testData/inspections/PyStringFormatInspection/NewStyleMappingKeyWithSubscriptionRefDictArg.py

7 lines
136 B
Python

d = {"a": 1}
"{foo[a]}".format(foo=d)
"{foo[b]}".format(foo=d)
d_num = {1: 1}
"{foo[1]}".format(foo=d_num)
"{foo[2]}".format(foo=d_num)