Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-110558: Run ruff on Argument Clinic in CI #110559

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 6 commits into from
Oct 10, 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
oops i deleted the wrong variable
  • Loading branch information
AlexWaygood authored Oct 9, 2023
commit 75c7a56f164d0fc3149e32bc42d7c0e7d2a7debc
2 changes: 1 addition & 1 deletion 2 Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ def render_function(
last_group = 0
first_optional = len(selfless)
positional = selfless and selfless[-1].is_positional_only()
new_or_init = f.kind.new_or_init
has_option_groups = False

# offset i by -1 because first_optional needs to ignore self
for i, p in enumerate(parameters, -1):
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.