File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -313,13 +313,13 @@ _program.py:7: note: Revealed type is 'typing.IO[Any]'
313
313
[case testPathOpenReturnTypeInferenceSpecialCases]
314
314
from pathlib import Path
315
315
p = Path("x")
316
- reveal_type(p.open(mode='rb ', errors='replace'))
317
- reveal_type(p.open(errors='replace', mode='rb '))
318
- mode = 'rb '
316
+ reveal_type(p.open(mode='r ', errors='replace'))
317
+ reveal_type(p.open(errors='replace', mode='r '))
318
+ mode = 'r '
319
319
reveal_type(p.open(mode=mode, errors='replace'))
320
320
[out]
321
- _program.py:3: note: Revealed type is 'typing.BinaryIO '
322
- _program.py:4: note: Revealed type is 'typing.BinaryIO '
321
+ _program.py:3: note: Revealed type is 'io.TextIOWrapper '
322
+ _program.py:4: note: Revealed type is 'io.TextIOWrapper '
323
323
_program.py:6: note: Revealed type is 'typing.IO[Any]'
324
324
325
325
[case testGenericPatterns]
You can’t perform that action at this time.
0 commit comments