@@ -254,7 +254,7 @@ reveal_type(open('x', mode))
254254[out]
255255_program.py:1: note: Revealed type is "_io.TextIOWrapper[_io._WrappedBuffer]"
256256_program.py:2: note: Revealed type is "_io.TextIOWrapper[_io._WrappedBuffer]"
257- _program.py:3: note: Revealed type is "_io.BufferedReader"
257+ _program.py:3: note: Revealed type is "_io.BufferedReader[_io._BufferedReaderStream] "
258258_program.py:5: note: Revealed type is "typing.IO[Any]"
259259
260260[case testOpenReturnTypeInferenceSpecialCases]
@@ -263,8 +263,8 @@ reveal_type(open(file='x', mode='rb'))
263263mode = 'rb'
264264reveal_type(open(mode=mode, file='r'))
265265[out]
266- _testOpenReturnTypeInferenceSpecialCases.py:1: note: Revealed type is "_io.BufferedReader"
267- _testOpenReturnTypeInferenceSpecialCases.py:2: note: Revealed type is "_io.BufferedReader"
266+ _testOpenReturnTypeInferenceSpecialCases.py:1: note: Revealed type is "_io.BufferedReader[_io._BufferedReaderStream] "
267+ _testOpenReturnTypeInferenceSpecialCases.py:2: note: Revealed type is "_io.BufferedReader[_io._BufferedReaderStream] "
268268_testOpenReturnTypeInferenceSpecialCases.py:4: note: Revealed type is "typing.IO[Any]"
269269
270270[case testPathOpenReturnTypeInference]
@@ -278,7 +278,7 @@ reveal_type(p.open(mode))
278278[out]
279279_program.py:3: note: Revealed type is "_io.TextIOWrapper[_io._WrappedBuffer]"
280280_program.py:4: note: Revealed type is "_io.TextIOWrapper[_io._WrappedBuffer]"
281- _program.py:5: note: Revealed type is "_io.BufferedReader"
281+ _program.py:5: note: Revealed type is "_io.BufferedReader[_io._BufferedReaderStream] "
282282_program.py:7: note: Revealed type is "typing.IO[Any]"
283283
284284[case testPathOpenReturnTypeInferenceSpecialCases]
0 commit comments