Skip to content

Commit

Permalink
Update create_output signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tchalupnik committed Sep 25, 2024
1 parent ad1a312 commit 189a8b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prompt_toolkit/output/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def create_output(
# If the patch_stdout context manager has been used, then sys.stdout is
# replaced by this proxy. For prompt_toolkit applications, we want to use
# the real stdout.
from prompt_toolkit.patch_stdout import StdoutProxy

while isinstance(stdout, StdoutProxy):
stdout = stdout.original_stdout

Expand Down

0 comments on commit 189a8b7

Please sign in to comment.