8000 gh-104683: Argument clinic: cleanup `state_modulename_name()` by AlexWaygood · Pull Request #107340 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104683: Argument clinic: cleanup state_modulename_name() #107340

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 3 commits into from
Jul 27, 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
Update clinic.py
  • Loading branch information
AlexWaygood authored Jul 27, 2023
commit 00e87b07041bcd471a0c283a32cc90eb1ed652c2
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4746,7 +4746,7 @@ def state_modulename_name(self, line: str | None) -> None:
try:
module_node = ast.parse(ast_input)
except SyntaxError:
fail("Badly-formed annotation for " + full_name + ": " + returns)
fail(f"Badly-formed annotation for {full_name}: {returns}")
function_node = module_node.body[0]
assert isinstance(function_node, ast.FunctionDef)
try:
Expand Down
0