Skip to content

Commit 75819df

Browse files
committed
fix mypy error: Unused "type: ignore" comment
Revert "Ignore mypy error: "bytearray" has no attribute "take_bytes"" This reverts commit 277ada7.
1 parent fe0fe2c commit 75819df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/_pyrepl/base_eventqueue.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def flush(self) -> None:
8686
# Nothing pending: either idle, or a complete key was already
8787
# emitted by ``push``.
8888
return
89-
buf = self.buf.take_bytes() # type: ignore[attr-defined]
89+
buf = self.buf.take_bytes()
9090
self.keymap = self.compiled_keymap
9191
if buf and buf[0] == 27: # escape
9292
self.insert(Event('key', '\033', b'\033'))

0 commit comments

Comments
 (0)