Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
python
/
testData
/
inspections
/
PyTypeCheckerInspection
/
EnumerateIterator.py
blob: d66ce9192a59e42cd098952d0cde44f3cec7ca30 [
file
] [
log
] [
blame
]
def
test
():
def
f
(
x
):
"""
:type x: str
"""
pass
xs
=
[
1.1
,
2.2
,
3.3
]
for
i
,
x
in
enumerate
(
xs
):
f
(<
warning descr
=
"Expected type 'str', got 'int' instead"
>
i
</
warning
>)
f
(<
warning descr
=
"Expected type 'str', got 'float' instead"
>
x
</
warning
>)