|
1 | 1 | from _typeshed import Incomplete |
| 2 | +from collections.abc import Iterable |
| 3 | +from typing import ClassVar, Final, Literal |
| 4 | + |
| 5 | +class NotSupportedException(Exception): ... |
| 6 | + |
| 7 | +DropIndirection: Final = "DropIndirection" |
| 8 | +NoTranslateTypes: Final[list[int]] |
| 9 | +NoTranslateMap: Final[set[int]] |
| 10 | + |
| 11 | +class MapEntry: |
| 12 | + dispid: Incomplete |
| 13 | + desc: Incomplete | None |
| 14 | + names: Incomplete |
| 15 | + doc: Incomplete |
| 16 | + resultCLSID: Incomplete |
| 17 | + resultDocumentation: Incomplete | None |
| 18 | + wasProperty: Incomplete |
| 19 | + hidden: bool | Literal[0, 1] |
| 20 | + def __init__( |
| 21 | + self, desc_or_id, names=None, doc=None, resultCLSID=..., resultDoc=None, hidden: bool | Literal[0, 1] = 0 |
| 22 | + ) -> None: ... |
| 23 | + def GetResultCLSID(self) -> Incomplete | None: ... |
| 24 | + def GetResultCLSIDStr(self) -> str: ... |
| 25 | + def GetResultName(self) -> Incomplete | None: ... |
2 | 26 |
|
3 | 27 | class OleItem: |
4 | | - typename: str |
| 28 | + typename: ClassVar[str] |
5 | 29 | doc: Incomplete |
6 | | - python_name: Incomplete |
7 | | - bWritten: int |
8 | | - bIsDispatch: int |
9 | | - bIsSink: int |
10 | | - clsid: Incomplete |
11 | | - co_class: Incomplete |
12 | | - def __init__(self, doc: Incomplete | None = ...) -> None: ... |
| 30 | + python_name: Incomplete | None |
| 31 | + bWritten: bool | Literal[0, 1] |
| 32 | + bIsDispatch: bool | Literal[0, 1] |
| 33 | + bIsSink: bool | Literal[0, 1] |
| 34 | + clsid: Incomplete | None |
| 35 | + co_class: Incomplete | None |
| 36 | + def __init__(self, doc=None) -> None: ... |
13 | 37 |
|
14 | 38 | class DispatchItem(OleItem): |
15 | | - typename: str |
16 | | - propMap: Incomplete |
17 | | - propMapGet: Incomplete |
18 | | - propMapPut: Incomplete |
19 | | - mapFuncs: Incomplete |
20 | | - defaultDispatchName: Incomplete |
21 | | - hidden: int |
22 | | - def __init__( |
23 | | - self, typeinfo: Incomplete | None = ..., attr: Incomplete | None = ..., doc: Incomplete | None = ..., bForUser: int = ... |
24 | | - ) -> None: ... |
| 39 | + typename: ClassVar[str] |
| 40 | + propMap: dict[Incomplete, Incomplete] |
| 41 | + propMapGet: dict[Incomplete, Incomplete] |
| 42 | + propMapPut: dict[Incomplete, Incomplete] |
| 43 | + mapFuncs: dict[Incomplete, Incomplete] |
| 44 | + defaultDispatchName: Incomplete | None |
| 45 | + hidden: bool | Literal[0, 1] |
| 46 | + def __init__(self, typeinfo=None, attr=None, doc=None, bForUser: bool | Literal[0, 1] = 1) -> None: ... |
25 | 47 | clsid: Incomplete |
26 | | - bIsDispatch: Incomplete |
27 | | - def Build(self, typeinfo, attr, bForUser: int = ...) -> None: ... |
28 | | - def CountInOutOptArgs(self, argTuple): ... |
29 | | - def MakeFuncMethod(self, entry, name, bMakeClass: int = ...): ... |
30 | | - def MakeDispatchFuncMethod(self, entry, name, bMakeClass: int = ...): ... |
31 | | - def MakeVarArgsFuncMethod(self, entry, name, bMakeClass: int = ...): ... |
| 48 | + bIsDispatch: bool | Literal[0, 1] |
| 49 | + def Build(self, typeinfo, attr, bForUser: bool | Literal[0, 1] = 1) -> None: ... |
| 50 | + def CountInOutOptArgs(self, argTuple: Iterable[Incomplete]) -> tuple[int, int, int]: ... |
| 51 | + def MakeFuncMethod(self, entry, name: str, bMakeClass: bool | Literal[0, 1] = 1) -> list[str]: ... |
| 52 | + def MakeDispatchFuncMethod(self, entry, name: str, bMakeClass: bool | Literal[0, 1] = 1) -> list[str]: ... |
| 53 | + def MakeVarArgsFuncMethod(self, entry, name: str, bMakeClass: bool | Literal[0, 1] = 1) -> list[str]: ... |
| 54 | + |
| 55 | +class VTableItem(DispatchItem): |
| 56 | + vtableFuncs: list[tuple[Incomplete, Incomplete, Incomplete]] |
| 57 | + def Build(self, typeinfo, attr, bForUser: bool | Literal[0, 1] = 1) -> None: ... |
32 | 58 |
|
33 | 59 | class LazyDispatchItem(DispatchItem): |
34 | | - typename: str |
| 60 | + typename: ClassVar[str] |
35 | 61 | clsid: Incomplete |
36 | 62 | def __init__(self, attr, doc) -> None: ... |
| 63 | + |
| 64 | +typeSubstMap: Final[dict[int, int]] |
| 65 | +valid_identifier_chars: Final[str] |
| 66 | + |
| 67 | +def demunge_leading_underscores(className: str) -> str: ... |
| 68 | +def MakePublicAttributeName(className: str, is_global: bool = False) -> str: ... |
| 69 | +def MakeDefaultArgRepr(defArgVal) -> str | None: ... |
| 70 | +def BuildCallList(fdesc, names, defNamedOptArg, defNamedNotOptArg, defUnnamedArg, defOutArg, is_comment: bool = False) -> str: ... |
0 commit comments