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

View File

@ -1,8 +1,7 @@
import os
import sys
from contextlib import contextmanager
from importlib.util import find_spec
from typing import Iterator
from .utils import suppress_stdout
__all__ = [
# Constants
@ -29,17 +28,6 @@ __all__ = [
]
@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
MANIM_PACKAGE_NAME = "manim"
MANIM_AVAILABLE = find_spec(MANIM_PACKAGE_NAME) is not None
MANIM_IMPORTED = MANIM_PACKAGE_NAME in sys.modules