We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4c489e commit d9b1f44Copy full SHA for d9b1f44
test-data/unit/pythoneval.test
@@ -305,9 +305,9 @@ reveal_type(p.open('rb'))
305
mode = 'rb'
306
reveal_type(p.open(mode))
307
[out]
308
-_program.py:3: note: Revealed type is 'typing.TextIO'
309
-_program.py:4: note: Revealed type is 'typing.TextIO'
310
-_program.py:5: note: Revealed type is 'typing.BinaryIO'
+_program.py:3: note: Revealed type is 'io.TextIOWrapper'
+_program.py:4: note: Revealed type is 'io.TextIOWrapper'
+_program.py:5: note: Revealed type is 'io.BufferedReader'
311
_program.py:7: note: Revealed type is 'typing.IO[Any]'
312
313
[case testPathOpenReturnTypeInferenceSpecialCases]
0 commit comments