mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-104050: Argument clinic: Complete get_destination_buffer
annotations (#107293)
This commit is contained in:
parent
e7e6e4b035
commit
f9bcdf2368
1 changed files with 2 additions and 2 deletions
|
@ -2172,7 +2172,7 @@ impl_definition block
|
|||
'impl_definition': d('block'),
|
||||
}
|
||||
|
||||
DestBufferType = dict[str, Callable[..., Any]]
|
||||
DestBufferType = dict[str, _TextAccumulator]
|
||||
DestBufferList = list[DestBufferType]
|
||||
|
||||
self.destination_buffers_stack: DestBufferList = []
|
||||
|
@ -2226,7 +2226,7 @@ impl_definition block
|
|||
self,
|
||||
name: str,
|
||||
item: int = 0
|
||||
):
|
||||
) -> _TextAccumulator:
|
||||
d = self.get_destination(name)
|
||||
return d.buffers[item]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue