forked from p34709852/monkey
Agent: Fix mypy issues in capture_output.py
This commit is contained in:
parent
ccfc41fc2f
commit
1621b494f4
|
@ -1,9 +1,11 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import io
|
||||
import sys
|
||||
|
||||
|
||||
class StdoutCapture:
|
||||
def __enter__(self) -> None:
|
||||
def __enter__(self) -> StdoutCapture:
|
||||
self._orig_stdout = sys.stdout
|
||||
self._new_stdout = io.StringIO()
|
||||
sys.stdout = self._new_stdout
|
||||
|
|
Loading…
Reference in New Issue