fix(lib): fix import * (typo in name)

This commit is contained in:
Jérome Eertmans
2023-08-07 10:11:16 +02:00
parent 146a2f7839
commit f6f2e4090f
3 changed files with 18 additions and 15 deletions

15
manim_slides/utils.py Normal file
View File

@ -0,0 +1,15 @@
import os
import sys
from contextlib import contextmanager
from typing import Iterator
@contextmanager
def suppress_stdout() -> Iterator[None]:
with open(os.devnull, "w") as devnull:
old_stdout = sys.stdout
sys.stdout = devnull
try:
yield
finally:
sys.stdout = old_stdout