core.pyi 521 B

123456789101112131415161718192021
  1. from collections.abc import Generator
  2. import contextlib
  3. from matplotlib import RcParams
  4. from matplotlib.typing import RcStyleType
  5. USER_LIBRARY_PATHS: list[str] = ...
  6. STYLE_EXTENSION: str = ...
  7. def use(style: RcStyleType) -> None: ...
  8. @contextlib.contextmanager
  9. def context(
  10. style: RcStyleType, after_reset: bool = ...
  11. ) -> Generator[None, None, None]: ...
  12. library: dict[str, RcParams]
  13. available: list[str]
  14. def reload_library() -> None: ...
  15. __all__ = ['use', 'context', 'available', 'library', 'reload_library']