gh-104050: Argument clinic: Complete get_destination_buffer annotations (#107293)

This commit is contained in:
Alex Waygood 2023-07-26 21:11:15 +01:00 committed by GitHub
parent e7e6e4b035
commit f9bcdf2368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]