Skip to content

Commit

Permalink
Annotate OverrideStdioWith()
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jul 4, 2023
1 parent a985dbb commit bacaaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ def render_function(self, clinic, f):


@contextlib.contextmanager
def OverrideStdioWith(stdout):
def OverrideStdioWith(stdout: io.TextIOWrapper):
saved_stdout = sys.stdout
sys.stdout = stdout
try:
Expand Down

0 comments on commit bacaaaa

Please sign in to comment.