From 8c2785190d1d19175f72071e2d8b55a25991d3d3 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Wed, 26 Jul 2023 13:30:29 +0100 Subject: [PATCH] gh-104050: Argument clinic: Complete `get_destination_buffer` annotations --- 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 f557984f7642fa..2d804c96f86c3c 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -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 = [] @@ -2226,7 +2226,7 @@ def get_destination_buffer( self, name: str, item: int = 0 - ): + ) -> _TextAccumulator: d = self.get_destination(name) return d.buffers[item]