Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
python
/
testData
/
inspections
/
PyUnresolvedReferencesInspection
/
negativeAssertType.py
blob: b42d0ccd56577e8dea28c1803fff1206421dea83 [
file
] [
log
] [
blame
]
def
f
(
c
):
x
=
'foo'
if
c
else
[
'f'
,
'o'
,
'o'
]
if
not
isinstance
(
x
,
str
):
raise
TypeError
(
'foo'
)
return
x
.<
warning descr
=
"Unresolved attribute reference 'pop' for class 'str'"
>
pop
</
warning
>()
# should warn about using 'pop()' on a 'str' instance