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: Argument clinic: Complete get_destination_buffer annotations #107293

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ def __init__(
'impl_definition': d('block'),
}

DestBufferType = dict[str, Callable[..., Any]]
DestBufferType = dict[str, _TextAccumulator]
DestBufferList = list[DestBufferType]

self.destination_buffers_stack: DestBufferList = []
Expand Down Expand Up @@ -2226,7 +2226,7 @@ def get_destination_buffer(
self,
name: str,
item: int = 0
):
) -> _TextAccumulator:
d = self.get_destination(name)
return d.buffers[item]

Expand Down
Loading