Make mypy happy

This commit is contained in:
George Tsiamasiotis 2024-09-23 22:34:08 +03:00
parent 0a11ed3781
commit 8278f4260f

View File

@ -74,7 +74,7 @@ class log_thread(AbstractContextManager, ContextDecorator):
# happens while an internal lock is held, the stdout/err flush can cause a deadlock.
#
# https://github.com/python/cpython/issues/91776
def reopen_std_streams():
def reopen_std_streams() -> None:
sys.stdout = os.fdopen(1, "w")
sys.stderr = os.fdopen(2, "w")