massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / fpdf2 / fpdf / syntax.pyi
1 from abc import ABC
2 from typing import Any, List
3
4 def clear_empty_fields(d): ...
5 def create_dictionary_string(
6     dict_,
7     open_dict: str = ...,
8     close_dict: str = ...,
9     field_join: str = ...,
10     key_value_join: str = ...,
11     has_empty_fields: bool = ...,
12 ): ...
13 def create_list_string(list_): ...
14 def iobj_ref(n): ...
15 def create_stream(stream): ...
16
17 class PDFObject:
18     def __init__(self, id: Any | None = ...) -> None: ...
19     @property
20     def id(self): ...
21     @id.setter
22     def id(self, n) -> None: ...
23     @property
24     def ref(self): ...
25     def serialize(self, fpdf: Any | None = ..., obj_dict: Any | None = ...): ...
26
27 def camel_case(property_name): ...
28
29 class PDFString(str):
30     def serialize(self): ...
31
32 class PDFArray(List[Any]):
33     def serialize(self): ...
34
35 class Destination(ABC):
36     def as_str(self, pdf: Any | None = ...) -> None: ...
37
38 class DestinationXYZ(Destination):
39     page: Any
40     x: Any
41     y: Any
42     zoom: Any
43     page_as_obj_id: Any
44     def __init__(self, page, x: int = ..., y: int = ..., zoom: str = ..., page_as_obj_id: bool = ...) -> None: ...
45     def as_str(self, pdf: Any | None = ...): ...