2 # Autogenerated by Thrift
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 import folly.iobuf as _fbthrift_iobuf
9 import thrift.py3.types
10 import thrift.py3.exceptions
11 from thrift.py3.types import __NotSet, NOTSET
12 import typing as _typing
13 from typing_extensions import Final
19 __property__ = property
22 class Enum(thrift.py3.types.Enum):
26 def _to_python(self) -> "module0.thrift_types.Enum": ... # type: ignore
27 def _to_py3(self) -> Enum: ...
28 def _to_py_deprecated(self) -> int: ...
31 class Struct(thrift.py3.types.Struct, _typing.Hashable):
32 class __fbthrift_IsSet:
37 first: Final[int] = ...
39 second: Final[str] = ...
43 first: _typing.Optional[int]=None,
44 second: _typing.Optional[str]=None
49 first: _typing.Union[int, '__NotSet', None]=NOTSET,
50 second: _typing.Union[str, '__NotSet', None]=NOTSET
53 def __reduce__(self) -> _typing.Tuple[_typing.Callable, _typing.Tuple[_typing.Type['Struct'], bytes]]: ...
54 def __hash__(self) -> int: ...
55 def __str__(self) -> str: ...
56 def __repr__(self) -> str: ...
57 def __lt__(self, other: 'Struct') -> bool: ...
58 def __gt__(self, other: 'Struct') -> bool: ...
59 def __le__(self, other: 'Struct') -> bool: ...
60 def __ge__(self, other: 'Struct') -> bool: ...
62 def _to_python(self) -> "module0.thrift_types.Struct": ... # type: ignore
63 def _to_py3(self) -> Struct: ...
64 def _to_py_deprecated(self) -> "module0.ttypes.Struct": ... # type: ignore
66 _List__EnumT = _typing.TypeVar('_List__EnumT', bound=_typing.Sequence[Enum])
69 class List__Enum(_typing.Sequence[Enum], _typing.Hashable):
70 def __init__(self, items: _typing.Optional[_typing.Sequence[Enum]]=None) -> None: ...
71 def __len__(self) -> int: ...
72 def __hash__(self) -> int: ...
73 def __copy__(self) -> _typing.Sequence[Enum]: ...
75 def __getitem__(self, i: int) -> Enum: ...
77 def __getitem__(self, s: slice) -> _typing.Sequence[Enum]: ...
78 def __add__(self, other: _typing.Sequence[Enum]) -> 'List__Enum': ...
79 def __radd__(self, other: _List__EnumT) -> _List__EnumT: ...
80 def __reversed__(self) -> _typing.Iterator[Enum]: ...
81 def __iter__(self) -> _typing.Iterator[Enum]: ...