Skip to content

Commit 33de5a0

Browse files
committed
Fix pythoneval tests
1 parent 7d56008 commit 33de5a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test-data/unit/pythoneval.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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'))
263263
mode = 'rb'
264264
reveal_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

Comments
 (0)