Skip to content
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

gh-104050: Annotate Argument Clinic parameter permutation helpers #106431

Merged
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
Address review: make it less specific
  • Loading branch information
erlend-aasland committed Jul 4, 2023
commit d854fbd916fea42a713417ca57ce8b7c7667c26d
10 changes: 5 additions & 5 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class PythonLanguage(Language):


def permute_left_option_groups(
l: Sequence[ParamTuple]
l: Sequence[Iterable[Parameter]]
) -> Iterator[ParamTuple]:
"""
Given [(1,), (2,), (3,)], should yield:
Expand All @@ -542,7 +542,7 @@ def permute_left_option_groups(


def permute_right_option_groups(
l: Sequence[ParamTuple]
l: Sequence[Iterable[Parameter]]
) -> Iterator[ParamTuple]:
"""
Given [(1,), (2,), (3,)], should yield:
Expand All @@ -559,9 +559,9 @@ def permute_right_option_groups(


def permute_optional_groups(
left: Sequence[ParamTuple],
required: ParamTuple,
right: Sequence[ParamTuple]
left: Sequence[Iterable[Parameter]],
required: Iterable[Parameter],
erlend-aasland marked this conversation as resolved.
Show resolved Hide resolved
right: Sequence[Iterable[Parameter]]
) -> tuple[ParamTuple, ...]:
"""
Generator function that computes the set of acceptable
Expand Down