Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
python
/
testData
/
inspections
/
PyTypeCheckerInspection
/
OpenRead2K.py
blob: c02798c4c6039332df8ecff0847df687e4239379 [
file
] [
log
] [
blame
]
def
f
(
s
):
"""
:type s: str
"""
pass
def
g
(
s
):
"""
:type s: unicode
"""
f
(
open
(
'foo'
).
read
())
# pass
g
(<
warning descr
=
"Expected type 'unicode', got 'str' instead"
>
open
(
'foo'
).
read
()</
warning
>)