Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / compiler / test / fixtures / qualified / gen-py3 / module0 / types.pyi
blob868c1d1b59e427b4070114a61b29c68891442733
2 # Autogenerated by Thrift
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 #  @generated
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
15 import sys
16 import itertools
19 __property__ = property
22 class Enum(thrift.py3.types.Enum):
23     ONE: Enum = ...
24     TWO: Enum = ...
25     THREE: 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:
33         first: bool
34         second: bool
35         pass
37     first: Final[int] = ...
39     second: Final[str] = ...
41     def __init__(
42         self, *,
43         first: _typing.Optional[int]=None,
44         second: _typing.Optional[str]=None
45     ) -> None: ...
47     def __call__(
48         self, *,
49         first: _typing.Union[int, '__NotSet', None]=NOTSET,
50         second: _typing.Union[str, '__NotSet', None]=NOTSET
51     ) -> Struct: ...
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]: ...
74     @_typing.overload
75     def __getitem__(self, i: int) -> Enum: ...
76     @_typing.overload
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]: ...
84 c0: Struct = ...
85 e0s: List__Enum = ...