Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
python
/
testData
/
inspections
/
PyTypeCheckerInspection
/
WithOpenBinaryPy3.py
blob: 9198f3f6ea893f718852c289b669bb90c9153743 [
file
] [
log
] [
blame
]
with
open
(
'foo'
,
'wb'
)
as
fd
:
fd
.
write
(
b
'bar'
)
with
open
(
'foo'
,
'wb'
)
as
fd
:
fd
.
write
(<
warning descr
=
"Expected type 'bytes | bytearray', got 'str' instead"
>
'bar'
</
warning
>)