8000 gh-104683: Argument Clinic: Modernise parse_special_symbol() by erlend-aasland · Pull Request #106837 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104683: Argument Clinic: Modernise parse_special_symbol() #106837

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
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
Fix mypy warnings
  • Loading branch information
erlend-aasland committed Jul 17, 2023
commit 6994d098094dea49b75cda580303adf3d0dbb9cc
4 changes: 2 additions & 2 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5161,7 +5161,7 @@ def parse_open_bracket(self, function: Function) -> None:
fail(f"Function {function.name} has an unsupported group configuration. "
f"(Unexpected state {st}.b)")
self.group += 1
self.function.docstring_only = True
function.docstring_only = True

def parse_close_bracket(self, function: Function) -> None:
if not self.group:
Expand Down Expand Up @@ -5198,7 +5198,7 @@ def parse_slash(self, function: Function) -> None:
fail(f"Function {function.name} mixes keyword-only and "
"positional-only parameters, which is unsupported.")
# fixup preceding parameters
for p in self.function.parameters.values():
for p in function.parameters.values():
if p.is_vararg():
continue
if (p.kind != inspect.Parameter.POSITIONAL_OR_KEYWORD and
Expand Down
0