From f9bcdf2368d25e6c56193c13d49de031ac2ae2e9 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 26 Jul 2023 21:11:15 +0100 Subject: gh-104050: Argument clinic: Complete `get_destination_buffer` annotations (#107293) --- Tools/clinic/clinic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index f557984..2d804c96 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -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] -- cgit v0.12