Skip to content

Commit 78db31b

Browse files
AlexWaygoodjtcave
authored andcommitted
pythongh-104050: Argument clinic: Complete get_destination_buffer annotations (python#107293)
1 parent 41c0c7f commit 78db31b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/clinic/clinic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,7 @@ def __init__(
21722172
'impl_definition': d('block'),
21732173
}
21742174

2175-
DestBufferType = dict[str, Callable[..., Any]]
2175+
DestBufferType = dict[str, _TextAccumulator]
21762176
DestBufferList = list[DestBufferType]
21772177

21782178
self.destination_buffers_stack: DestBufferList = []
@@ -2226,7 +2226,7 @@ def get_destination_buffer(
22262226
self,
22272227
name: str,
22282228
item: int = 0
2229-
):
2229+
) -> _TextAccumulator:
22302230
d = self.get_destination(name)
22312231
return d.buffers[item]
22322232

0 commit comments

Comments
 (0)