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 (python#107293)
  • Loading branch information
AlexWaygood authored and jtcave committed Jul 27, 2023
1 parent 41c0c7f commit 78db31b
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 78db31b

Please sign in to comment.