8000 [3.13] Bump mypy to 1.16.1 (GH-135720) (#135849) · python/cpython@028d56f · GitHub
[go: up one dir, main page]

Skip to content

Commit 028d56f

Browse files
hugovksobolevn
andauthored
[3.13] Bump mypy to 1.16.1 (GH-135720) (#135849)
Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 980d6cc commit 028d56f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Lib/_pyrepl/base_eventqueue.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def push(self, char: int | bytes) -> None:
8787
if isinstance(k, dict):
8888
self.keymap = k
8989
else:
90-
self.insert(Event('key', k, self.flush_buf()))
90+
self.insert(Event('key', k, bytes(self.flush_buf())))
9191
self.keymap = self.compiled_keymap
9292

9393
elif self.buf and self.buf[0] == 27: # escape
@@ -96,7 +96,7 @@ def push(self, char: int | bytes) -> None:
9696
# the docstring in keymap.py
9797
trace('unrecognized escape sequence, propagating...')
9898
self.keymap = self.compiled_keymap
99-
self.insert(Event('key', '\033', bytearray(b'\033')))
99+
self.insert(Event('key', '\033', b'\033'))
100100
for _c in self.flush_buf()[1:]:
101101
self.push(_c)
102102

@@ -106,5 +106,5 @@ def push(self, char: int | bytes) -> None:
106106
except UnicodeError:
107107
return
108108
else:
109-
self.insert(Event('key', decoded, self.flush_buf()))
109+
self.insert(Event('key', decoded, bytes(self.flush_buf())))
110110
self.keymap = self.compiled_keymap

Tools/requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Requirements file for external linters and checks we run on
22
# Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
3-
mypy==1.15
3+
mypy==1.16.1
44

55
# needed for peg_generator:
6-
types-psutil==5.9.5.20240423
7-
types-setuptools==69.5.0.20240423
6+
types-psutil==7.0.0.20250601
7+
types-setuptools==80.9.0.20250529

0 commit comments

Comments
 (0)
0