Buckets:
| import os | |
| from typing import Generic, IO, Literal, TypeVar, overload | |
| from matplotlib.font_manager import FontProperties | |
| from matplotlib.typing import ColorType | |
| # Re-exported API from _mathtext. | |
| from ._mathtext import ( | |
| RasterParse as RasterParse, | |
| VectorParse as VectorParse, | |
| get_unicode_index as get_unicode_index, | |
| ) | |
| _ParseType = TypeVar("_ParseType", RasterParse, VectorParse) | |
| class MathTextParser(Generic[_ParseType]): | |
| def __init__(self: MathTextParser[VectorParse], output: Literal["path"]) -> None: ... | |
| def __init__(self: MathTextParser[RasterParse], output: Literal["agg", "raster", "macosx"]) -> None: ... | |
| def parse( | |
| self, s: str, dpi: float = ..., prop: FontProperties | None = ..., *, antialiased: bool | None = ... | |
| ) -> _ParseType: ... | |
| def math_to_image( | |
| s: str, | |
| filename_or_obj: str | os.PathLike | IO, | |
| prop: FontProperties | None = ..., | |
| dpi: float | None = ..., | |
| format: str | None = ..., | |
| *, | |
| color: ColorType | None = ... | |
| ) -> float: ... | |
Xet Storage Details
- Size:
- 1.05 kB
- Xet hash:
- 301c071004440d447e377efda89c09dfff181533fb4f5a413e718a932d65fe0f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.