8000 gh-107901: add the HAS_EVAL_BREAK instruction flag by iritkatriel · Pull Request #108375 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-107901: add the HAS_EVAL_BRE 8000 AK instruction flag #108375

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

Merged
merged 9 commits into from
Aug 25, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
ok, I finally installed mypy
  • Loading branch information
iritkatriel committed Aug 25, 2023
commit e64d5f84078b64af8d40950a52f331b5f3c78d63
3 changes: 2 additions & 1 deletion Tools/cases_generator/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ def names(self, value: bool | None = None) -> list[str]:
return list(dataclasses.asdict(self).keys())
return [n for n, v in dataclasses.asdict(self).items() if v == value]

def bitmap(self, ignore: tuple[str] = ()) -> int:
def bitmap(self, ignore: tuple[str] | None = None) -> int:
flags = 0
ignore = ignore or ()
assert all(hasattr(self, name) for name in ignore)
for name in self.names():
if getattr(self, name) and name not in ignore:
Expand Down
0