Skip to content

Bump mypy to 1.16.1 #135720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lib/_pyrepl/base_eventqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def push(self, char: int | bytes) -> None:
if isinstance(k, dict):
self.keymap = k
else:
self.insert(Event('key', k, self.flush_buf()))
self.insert(Event('key', k, bytes(self.flush_buf())))
self.keymap = self.compiled_keymap

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

Expand All @@ -106,5 +106,5 @@ def push(self, char: int | bytes) -> None:
except UnicodeError:
return
else:
self.insert(Event('key', decoded, self.flush_buf()))
self.insert(Event('key', decoded, bytes(self.flush_buf())))
self.keymap = self.compiled_keymap
2 changes: 1 addition & 1 deletion Tools/cases_generator/tier2_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def deopt_if(
self.emit("}\n")
return not always_true(first_tkn)

def exit_if( # type: ignore[override]
def exit_if(
self,
tkn: Token,
tkn_iter: TokenIterator,
Expand Down
6 changes: 3 additions & 3 deletions Tools/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Requirements file for external linters and checks we run on
# Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
mypy==1.15
mypy==1.16.1

# needed for peg_generator:
types-psutil==6.0.0.20240901
types-setuptools==74.0.0.20240831
types-psutil==7.0.0.20250601
types-setuptools==80.9.0.20250529
Loading