Skip to content

Commit fed798a

Browse files
AlexWaygoodJelleZijlstra
authored andcommitted
Fix tests
1 parent e1a82a2 commit fed798a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test-data/unit/pythoneval.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ def bin(f: IO[bytes]) -> None:
268268
txt(sys.stdout)
269269
bin(sys.stdout)
270270
[out]
271-
_program.py:5: error: Argument 1 to "write" of "IO" has incompatible type "bytes"; expected "str"
271+
_program.py:5: error: No overload variant of "write" of "IO" matches argument type "bytes"
272+
_program.py:5: note: Possible overload variants:
273+
_program.py:5: note: def write(self, str, /) -> int
272274
_program.py:10: error: Argument 1 to "bin" has incompatible type "TextIO"; expected "IO[bytes]"
273275

274276
[case testBuiltinOpen]

0 commit comments

Comments
 (0)