From: Alex Waygood Date: Wed, 26 Jul 2023 20:11:15 +0000 (+0100) Subject: gh-104050: Argument clinic: Complete `get_destination_buffer` annotations (#107293) X-Git-Tag: v3.13.0a1~1189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9bcdf2368d25e6c56193c13d49de031ac2ae2e9;p=thirdparty%2FPython%2Fcpython.git gh-104050: Argument clinic: Complete `get_destination_buffer` annotations (#107293) --- diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index f557984f7642..2d804c96f86c 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]