massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / fpdf2 / fpdf / util.pyi
1 from collections.abc import Iterable
2 from typing import Any, Tuple
3 from typing_extensions import Literal
4
5 _Unit = Literal["pt", "mm", "cm", "in"]
6
7 def substr(s, start, length: int = ...): ...
8 def enclose_in_parens(s): ...
9 def escape_parens(s): ...
10 def b(s): ...
11 def get_scale_factor(unit: _Unit | float) -> float: ...
12 def convert_unit(
13     # to_convert has a recursive type
14     to_convert: float | Iterable[float | Iterable[Any]],
15     old_unit: str | float,
16     new_unit: str | float,
17 ) -> float | Tuple[float, ...]: ...
18 def dochecks() -> None: ...