]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104050: Argument clinic: Complete `get_destination_buffer` annotations (#107293)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Wed, 26 Jul 2023 20:11:15 +0000 (21:11 +0100)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 20:11:15 +0000 (21:11 +0100)
Tools/clinic/clinic.py

index f557984f7642fa932e540f06aefb9623fd9c2e1e..2d804c96f86c3c94700f1b1bfb67803b61120f5e 100755 (executable)
@@ -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]