8000 gh-113317, Argument Clinic: Add BlockParser.fail() method by vstinner · Pull Request #115369 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-113317, Argument Clinic: Add BlockParser.fail() method #115369

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

Closed
wants to merge 3 commits into from
Closed
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
Update Tools/clinic/clinic.py
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
vstinner and erlend-aasland authored Feb 14, 2024
commit 44007859344990772f206a3547e2a6c40836d272
5 changes: 2 additions & 3 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1883,9 +1883,8 @@ def __init__(
self.first_block = True

def fail(self, *args: object) -> NoReturn:
warn_or_fail(*args,
filename=self.filename, line_number=self.line_number,
fail=True)
fail(*args,
filename=self.filename, line_number=self.line_number)

def __iter__(self) -> BlockParser:
return self
Expand Down
0