massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / fpdf2 / fpdf / util.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi
new file mode 100644 (file)
index 0000000..0455c3f
--- /dev/null
@@ -0,0 +1,18 @@
+from collections.abc import Iterable
+from typing import Any, Tuple
+from typing_extensions import Literal
+
+_Unit = Literal["pt", "mm", "cm", "in"]
+
+def substr(s, start, length: int = ...): ...
+def enclose_in_parens(s): ...
+def escape_parens(s): ...
+def b(s): ...
+def get_scale_factor(unit: _Unit | float) -> float: ...
+def convert_unit(
+    # to_convert has a recursive type
+    to_convert: float | Iterable[float | Iterable[Any]],
+    old_unit: str | float,
+    new_unit: str | float,
+) -> float | Tuple[float, ...]: ...
+def dochecks() -> None: ...