Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
inspections
/
PyStringFormatInspection
/
NewStyleMappingKeyWithSubscriptionDictArg.py
blob: a7b7b5ae7cc3b534720dfb38a047643de6d53367 [
file
]
"{foo[a]}"
.
format
(
foo
={
"a"
:
1
})
<
warning descr
=
"Too few arguments for format string"
>
"{foo[b]}"
</
warning
>.
format
(
foo
={
"a"
:
1
})
"{foo[1]}"
.
format
(
foo
={
1
:
1
})
<
warning descr
=
"Too few arguments for format string"
>
"{foo[2]}"
</
warning
>.
format
(
foo
={
1
:
1
})