Skip to content

Commit

Permalink
pythongh-104050: Argument clinic: Complete get_destination_buffer a…
Browse files Browse the repository at this point in the history
…nnotations
  • Loading branch information
AlexWaygood committed Jul 26, 2023
1 parent 14d074e commit 8c27851
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 8c27851

Please sign in to comment.