#
# Autogenerated by Thrift
#
# DO NOT EDIT
#  @generated
#

from __future__ import annotations


# EXPERIMENTAL - DO NOT USE !!!
# See `experimental_generate_mutable_types` documentation in thrift compiler

#
# Autogenerated by Thrift
#
# DO NOT EDIT
#  @generated
#

from __future__ import annotations

import typing as _typing

import folly.iobuf as _fbthrift_iobuf
import thrift.python.types as _fbthrift_python_types
import thrift.python.mutable_types as _fbthrift_python_mutable_types
import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions
import thrift.python.mutable_containers as _fbthrift_python_mutable_containers

import apache.thrift.fixtures.types.included.thrift_types

class _fbthrift_compatible_with_has_bitwise_ops:
    pass


class has_bitwise_ops(_fbthrift_python_types.Enum, int, _fbthrift_compatible_with_has_bitwise_ops):
    none: has_bitwise_ops = ...
    zero: has_bitwise_ops = ...
    one: has_bitwise_ops = ...
    two: has_bitwise_ops = ...
    three: has_bitwise_ops = ...
    def _to_python(self) -> has_bitwise_ops: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.has_bitwise_ops": ...  # type: ignore
    def _to_py_deprecated(self) -> int: ...

class _fbthrift_compatible_with_is_unscoped:
    pass


class is_unscoped(_fbthrift_python_types.Enum, int, _fbthrift_compatible_with_is_unscoped):
    hello: is_unscoped = ...
    world: is_unscoped = ...
    def _to_python(self) -> is_unscoped: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.is_unscoped": ...  # type: ignore
    def _to_py_deprecated(self) -> int: ...

class _fbthrift_compatible_with_MyForwardRefEnum:
    pass


class MyForwardRefEnum(_fbthrift_python_types.Enum, int, _fbthrift_compatible_with_MyForwardRefEnum):
    ZERO: MyForwardRefEnum = ...
    NONZERO: MyForwardRefEnum = ...
    def _to_python(self) -> MyForwardRefEnum: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.MyForwardRefEnum": ...  # type: ignore
    def _to_py_deprecated(self) -> int: ...


class _fbthrift_compatible_with_empty_struct:
    pass


class empty_struct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_empty_struct):
    def __init__(
        self,
    ) -> None: ...

    def __call__(
        self,
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[None]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.empty_struct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.empty_struct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.empty_struct": ...  # type: ignore


class _fbthrift_compatible_with_decorated_struct:
    pass


class decorated_struct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_decorated_struct):
    field: str = ...
    def __init__(
        self, *,
        field: _typing.Optional[str]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[str]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[str]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.decorated_struct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.decorated_struct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.decorated_struct": ...  # type: ignore


class _fbthrift_compatible_with_ContainerStruct:
    pass


class ContainerStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_ContainerStruct):

    @property
    def fieldB(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ...
    @fieldB.setter
    def fieldB(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ...


    @property
    def fieldC(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ...
    @fieldC.setter
    def fieldC(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ...


    @property
    def fieldD(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ...
    @fieldD.setter
    def fieldD(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ...


    @property
    def fieldE(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ...
    @fieldE.setter
    def fieldE(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ...


    @property
    def fieldF(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ...
    @fieldF.setter
    def fieldF(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ...


    @property
    def fieldG(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ...
    @fieldG.setter
    def fieldG(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...


    @property
    def fieldH(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ...
    @fieldH.setter
    def fieldH(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...


    @property
    def fieldA(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ...
    @fieldA.setter
    def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ...

    def __init__(
        self, *,
        fieldB: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldC: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldD: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldE: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldF: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper]=...,
        fieldG: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...,
        fieldH: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...,
        fieldA: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        fieldB: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldC: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldD: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldE: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        fieldF: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper]=...,
        fieldG: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...,
        fieldH: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...,
        fieldA: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[int], _fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableList[int]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.ContainerStruct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.ContainerStruct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.ContainerStruct": ...  # type: ignore


class _fbthrift_compatible_with_CppTypeStruct:
    pass


class CppTypeStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_CppTypeStruct):

    @property
    def fieldA(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ...
    @fieldA.setter
    def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ...

    def __init__(
        self, *,
        fieldA: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        fieldA: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[int]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.CppTypeStruct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.CppTypeStruct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.CppTypeStruct": ...  # type: ignore


class _fbthrift_compatible_with_VirtualStruct:
    pass


class VirtualStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_VirtualStruct):
    MyIntField: int = ...
    def __init__(
        self, *,
        MyIntField: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        MyIntField: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.VirtualStruct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.VirtualStruct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.VirtualStruct": ...  # type: ignore


class _fbthrift_compatible_with_MyStructWithForwardRefEnum:
    pass


class MyStructWithForwardRefEnum(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_MyStructWithForwardRefEnum):
    a: MyForwardRefEnum = ...
    b: MyForwardRefEnum = ...
    def __init__(
        self, *,
        a: _typing.Optional[_fbthrift_compatible_with_MyForwardRefEnum]=...,
        b: _typing.Optional[_fbthrift_compatible_with_MyForwardRefEnum]=...
    ) -> None: ...

    def __call__(
        self, *,
        a: _typing.Optional[_fbthrift_compatible_with_MyForwardRefEnum]=...,
        b: _typing.Optional[_fbthrift_compatible_with_MyForwardRefEnum]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[MyForwardRefEnum, MyForwardRefEnum]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.MyStructWithForwardRefEnum": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.MyStructWithForwardRefEnum": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.MyStructWithForwardRefEnum": ...  # type: ignore


class _fbthrift_compatible_with_TrivialNumeric:
    pass


class TrivialNumeric(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_TrivialNumeric):
    a: int = ...
    b: bool = ...
    def __init__(
        self, *,
        a: _typing.Optional[int]=...,
        b: _typing.Optional[bool]=...
    ) -> None: ...

    def __call__(
        self, *,
        a: _typing.Optional[int]=...,
        b: _typing.Optional[bool]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int, bool]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.TrivialNumeric": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.TrivialNumeric": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.TrivialNumeric": ...  # type: ignore


class _fbthrift_compatible_with_TrivialNestedWithDefault:
    pass


class TrivialNestedWithDefault(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_TrivialNestedWithDefault):
    z: int = ...
    n: TrivialNumeric = ...
    def __init__(
        self, *,
        z: _typing.Optional[int]=...,
        n: _typing.Optional[_fbthrift_compatible_with_TrivialNumeric]=...
    ) -> None: ...

    def __call__(
        self, *,
        z: _typing.Optional[int]=...,
        n: _typing.Optional[_fbthrift_compatible_with_TrivialNumeric]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int, TrivialNumeric]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.TrivialNestedWithDefault": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.TrivialNestedWithDefault": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.TrivialNestedWithDefault": ...  # type: ignore


class _fbthrift_compatible_with_ComplexString:
    pass


class ComplexString(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_ComplexString):
    a: str = ...

    @property
    def b(self) -> _fbthrift_python_mutable_containers.MutableMap[str, int]: ...
    @b.setter
    def b(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...

    def __init__(
        self, *,
        a: _typing.Optional[str]=...,
        b: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        a: _typing.Optional[str]=...,
        b: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[str, _fbthrift_python_mutable_containers.MutableMap[str, int]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.ComplexString": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.ComplexString": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.ComplexString": ...  # type: ignore


class _fbthrift_compatible_with_ComplexNestedWithDefault:
    pass


class ComplexNestedWithDefault(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_ComplexNestedWithDefault):
    z: str = ...
    n: ComplexString = ...
    def __init__(
        self, *,
        z: _typing.Optional[str]=...,
        n: _typing.Optional[_fbthrift_compatible_with_ComplexString]=...
    ) -> None: ...

    def __call__(
        self, *,
        z: _typing.Optional[str]=...,
        n: _typing.Optional[_fbthrift_compatible_with_ComplexString]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[str, ComplexString]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.ComplexNestedWithDefault": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.ComplexNestedWithDefault": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.ComplexNestedWithDefault": ...  # type: ignore


class _fbthrift_compatible_with_MinPadding:
    pass


class MinPadding(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_MinPadding):
    small: int = ...
    big: int = ...
    medium: int = ...
    biggish: int = ...
    tiny: int = ...
    def __init__(
        self, *,
        small: _typing.Optional[int]=...,
        big: _typing.Optional[int]=...,
        medium: _typing.Optional[int]=...,
        biggish: _typing.Optional[int]=...,
        tiny: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        small: _typing.Optional[int]=...,
        big: _typing.Optional[int]=...,
        medium: _typing.Optional[int]=...,
        biggish: _typing.Optional[int]=...,
        tiny: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int, int, int, int, int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.MinPadding": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.MinPadding": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.MinPadding": ...  # type: ignore


class _fbthrift_compatible_with_MinPaddingWithCustomType:
    pass


class MinPaddingWithCustomType(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_MinPaddingWithCustomType):
    small: int = ...
    big: int = ...
    medium: int = ...
    biggish: int = ...
    tiny: int = ...
    def __init__(
        self, *,
        small: _typing.Optional[int]=...,
        big: _typing.Optional[int]=...,
        medium: _typing.Optional[int]=...,
        biggish: _typing.Optional[int]=...,
        tiny: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        small: _typing.Optional[int]=...,
        big: _typing.Optional[int]=...,
        medium: _typing.Optional[int]=...,
        biggish: _typing.Optional[int]=...,
        tiny: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int, int, int, int, int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.MinPaddingWithCustomType": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.MinPaddingWithCustomType": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.MinPaddingWithCustomType": ...  # type: ignore


class _fbthrift_compatible_with_MyStruct:
    pass


class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_MyStruct):
    MyIntField: int = ...
    MyStringField: str = ...
    majorVer: int = ...
    data: MyDataItem = ...
    def __init__(
        self, *,
        MyIntField: _typing.Optional[int]=...,
        MyStringField: _typing.Optional[str]=...,
        majorVer: _typing.Optional[int]=...,
        data: _typing.Optional[_fbthrift_compatible_with_MyDataItem]=...
    ) -> None: ...

    def __call__(
        self, *,
        MyIntField: _typing.Optional[int]=...,
        MyStringField: _typing.Optional[str]=...,
        majorVer: _typing.Optional[int]=...,
        data: _typing.Optional[_fbthrift_compatible_with_MyDataItem]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int, str, int, MyDataItem]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.MyStruct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.MyStruct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.MyStruct": ...  # type: ignore


class _fbthrift_compatible_with_MyDataItem:
    pass


class MyDataItem(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_MyDataItem):
    def __init__(
        self,
    ) -> None: ...

    def __call__(
        self,
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[None]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.MyDataItem": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.MyDataItem": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.MyDataItem": ...  # type: ignore


class _fbthrift_compatible_with_Renaming:
    pass


class Renaming(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_Renaming):
    foo: int = ...
    def __init__(
        self, *,
        foo: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        foo: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.Renaming": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.Renaming": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.Renaming": ...  # type: ignore


class _fbthrift_compatible_with_AnnotatedTypes:
    pass


class AnnotatedTypes(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_AnnotatedTypes):
    binary_field: bytes = ...

    @property
    def list_field(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]]: ...
    @list_field.setter
    def list_field(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftListWrapper): ...

    def __init__(
        self, *,
        binary_field: _typing.Optional[bytes]=...,
        list_field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        binary_field: _typing.Optional[bytes]=...,
        list_field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[bytes, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.AnnotatedTypes": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.AnnotatedTypes": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.AnnotatedTypes": ...  # type: ignore


class _fbthrift_compatible_with_ForwardUsageRoot:
    pass


class ForwardUsageRoot(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_ForwardUsageRoot):
    ForwardUsageStruct: _typing.Optional[ForwardUsageStruct] = ...
    ForwardUsageByRef: _typing.Optional[ForwardUsageByRef] = ...
    def __init__(
        self, *,
        ForwardUsageStruct: _typing.Optional[_fbthrift_compatible_with_ForwardUsageStruct]=...,
        ForwardUsageByRef: _typing.Optional[_fbthrift_compatible_with_ForwardUsageByRef]=...
    ) -> None: ...

    def __call__(
        self, *,
        ForwardUsageStruct: _typing.Optional[_fbthrift_compatible_with_ForwardUsageStruct]=...,
        ForwardUsageByRef: _typing.Optional[_fbthrift_compatible_with_ForwardUsageByRef]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[ForwardUsageStruct, ForwardUsageByRef]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.ForwardUsageRoot": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.ForwardUsageRoot": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.ForwardUsageRoot": ...  # type: ignore


class _fbthrift_compatible_with_ForwardUsageStruct:
    pass


class ForwardUsageStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_ForwardUsageStruct):
    foo: _typing.Optional[ForwardUsageRoot] = ...
    def __init__(
        self, *,
        foo: _typing.Optional[_fbthrift_compatible_with_ForwardUsageRoot]=...
    ) -> None: ...

    def __call__(
        self, *,
        foo: _typing.Optional[_fbthrift_compatible_with_ForwardUsageRoot]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[ForwardUsageRoot]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.ForwardUsageStruct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.ForwardUsageStruct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.ForwardUsageStruct": ...  # type: ignore


class _fbthrift_compatible_with_ForwardUsageByRef:
    pass


class ForwardUsageByRef(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_ForwardUsageByRef):
    foo: _typing.Optional[ForwardUsageRoot] = ...
    def __init__(
        self, *,
        foo: _typing.Optional[_fbthrift_compatible_with_ForwardUsageRoot]=...
    ) -> None: ...

    def __call__(
        self, *,
        foo: _typing.Optional[_fbthrift_compatible_with_ForwardUsageRoot]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[ForwardUsageRoot]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.ForwardUsageByRef": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.ForwardUsageByRef": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.ForwardUsageByRef": ...  # type: ignore


class _fbthrift_compatible_with_IncompleteMap:
    pass


class IncompleteMap(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_IncompleteMap):

    @property
    def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, IncompleteMapDep]]: ...
    @field.setter
    def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, IncompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...

    def __init__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_compatible_with_IncompleteMapDep] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_compatible_with_IncompleteMapDep] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableMap[int, IncompleteMapDep]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.IncompleteMap": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.IncompleteMap": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.IncompleteMap": ...  # type: ignore


class _fbthrift_compatible_with_IncompleteMapDep:
    pass


class IncompleteMapDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_IncompleteMapDep):
    def __init__(
        self,
    ) -> None: ...

    def __call__(
        self,
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[None]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.IncompleteMapDep": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.IncompleteMapDep": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.IncompleteMapDep": ...  # type: ignore


class _fbthrift_compatible_with_CompleteMap:
    pass


class CompleteMap(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_CompleteMap):

    @property
    def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, CompleteMapDep]]: ...
    @field.setter
    def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, CompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...

    def __init__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_compatible_with_CompleteMapDep] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_compatible_with_CompleteMapDep] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableMap[int, CompleteMapDep]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.CompleteMap": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.CompleteMap": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.CompleteMap": ...  # type: ignore


class _fbthrift_compatible_with_CompleteMapDep:
    pass


class CompleteMapDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_CompleteMapDep):
    def __init__(
        self,
    ) -> None: ...

    def __call__(
        self,
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[None]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.CompleteMapDep": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.CompleteMapDep": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.CompleteMapDep": ...  # type: ignore


class _fbthrift_compatible_with_IncompleteList:
    pass


class IncompleteList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_IncompleteList):

    @property
    def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[IncompleteListDep]]: ...
    @field.setter
    def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[IncompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ...

    def __init__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_IncompleteListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_IncompleteListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[IncompleteListDep]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.IncompleteList": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.IncompleteList": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.IncompleteList": ...  # type: ignore


class _fbthrift_compatible_with_IncompleteListDep:
    pass


class IncompleteListDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_IncompleteListDep):
    def __init__(
        self,
    ) -> None: ...

    def __call__(
        self,
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[None]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.IncompleteListDep": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.IncompleteListDep": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.IncompleteListDep": ...  # type: ignore


class _fbthrift_compatible_with_CompleteList:
    pass


class CompleteList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_CompleteList):

    @property
    def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[CompleteListDep]]: ...
    @field.setter
    def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[CompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ...

    def __init__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_CompleteListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_CompleteListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[CompleteListDep]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.CompleteList": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.CompleteList": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.CompleteList": ...  # type: ignore


class _fbthrift_compatible_with_CompleteListDep:
    pass


class CompleteListDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_CompleteListDep):
    def __init__(
        self,
    ) -> None: ...

    def __call__(
        self,
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[None]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.CompleteListDep": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.CompleteListDep": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.CompleteListDep": ...  # type: ignore


class _fbthrift_compatible_with_AdaptedList:
    pass


class AdaptedList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_AdaptedList):

    @property
    def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[AdaptedListDep]]: ...
    @field.setter
    def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[AdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ...

    def __init__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_AdaptedListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_AdaptedListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[AdaptedListDep]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.AdaptedList": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.AdaptedList": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.AdaptedList": ...  # type: ignore


class _fbthrift_compatible_with_AdaptedListDep:
    pass


class AdaptedListDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_AdaptedListDep):
    field: AdaptedList = ...
    def __init__(
        self, *,
        field: _typing.Optional[_fbthrift_compatible_with_AdaptedList]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[_fbthrift_compatible_with_AdaptedList]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[AdaptedList]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.AdaptedListDep": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.AdaptedListDep": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.AdaptedListDep": ...  # type: ignore


class _fbthrift_compatible_with_DependentAdaptedList:
    pass


class DependentAdaptedList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_DependentAdaptedList):

    @property
    def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[DependentAdaptedListDep]]: ...
    @field.setter
    def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[DependentAdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ...

    def __init__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_DependentAdaptedListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_compatible_with_DependentAdaptedListDep] | _fbthrift_python_mutable_types._ThriftListWrapper]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[DependentAdaptedListDep]]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.DependentAdaptedList": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.DependentAdaptedList": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.DependentAdaptedList": ...  # type: ignore


class _fbthrift_compatible_with_DependentAdaptedListDep:
    pass


class DependentAdaptedListDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_DependentAdaptedListDep):
    field: _typing.Optional[int] = ...
    def __init__(
        self, *,
        field: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        field: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.DependentAdaptedListDep": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.DependentAdaptedListDep": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.DependentAdaptedListDep": ...  # type: ignore


class _fbthrift_compatible_with_AllocatorAware:
    pass


class AllocatorAware(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_AllocatorAware):

    @property
    def aa_list(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ...
    @aa_list.setter
    def aa_list(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ...


    @property
    def aa_set(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ...
    @aa_set.setter
    def aa_set(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ...


    @property
    def aa_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, int]: ...
    @aa_map.setter
    def aa_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...

    aa_string: str = ...
    not_a_container: int = ...
    aa_unique: int = ...
    aa_shared: int = ...
    def __init__(
        self, *,
        aa_list: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        aa_set: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper]=...,
        aa_map: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...,
        aa_string: _typing.Optional[str]=...,
        not_a_container: _typing.Optional[int]=...,
        aa_unique: _typing.Optional[int]=...,
        aa_shared: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        aa_list: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
        aa_set: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper]=...,
        aa_map: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...,
        aa_string: _typing.Optional[str]=...,
        not_a_container: _typing.Optional[int]=...,
        aa_unique: _typing.Optional[int]=...,
        aa_shared: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[int], _fbthrift_python_mutable_containers.MutableMap[int, int], str, int, int, int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.AllocatorAware": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.AllocatorAware": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.AllocatorAware": ...  # type: ignore


class _fbthrift_compatible_with_AllocatorAware2:
    pass


class AllocatorAware2(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_AllocatorAware2):
    not_a_container: int = ...
    box_field: _typing.Optional[int] = ...
    def __init__(
        self, *,
        not_a_container: _typing.Optional[int]=...,
        box_field: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        not_a_container: _typing.Optional[int]=...,
        box_field: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int, int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.AllocatorAware2": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.AllocatorAware2": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.AllocatorAware2": ...  # type: ignore


class _fbthrift_compatible_with_TypedefStruct:
    pass


class TypedefStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_TypedefStruct):
    i32_field: int = ...
    IntTypedef_field: int = ...
    UintTypedef_field: int = ...
    def __init__(
        self, *,
        i32_field: _typing.Optional[int]=...,
        IntTypedef_field: _typing.Optional[int]=...,
        UintTypedef_field: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        i32_field: _typing.Optional[int]=...,
        IntTypedef_field: _typing.Optional[int]=...,
        UintTypedef_field: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int, int, int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.TypedefStruct": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.TypedefStruct": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.TypedefStruct": ...  # type: ignore


class _fbthrift_compatible_with_StructWithDoubleUnderscores:
    pass


class StructWithDoubleUnderscores(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_with_StructWithDoubleUnderscores):
    _StructWithDoubleUnderscores__field: int = ...
    def __init__(
        self, *,
        _StructWithDoubleUnderscores__field: _typing.Optional[int]=...
    ) -> None: ...

    def __call__(
        self, *,
        _StructWithDoubleUnderscores__field: _typing.Optional[int]=...
    ) -> _typing.Self: ...
    def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[int]]]: ...
    def _to_python(self) -> "apache.thrift.fixtures.types.module.thrift_types.StructWithDoubleUnderscores": ...  # type: ignore
    def _to_mutable_python(self) -> _typing.Self: ...
    def _to_py3(self) -> "apache.thrift.fixtures.types.module.types.StructWithDoubleUnderscores": ...  # type: ignore
    def _to_py_deprecated(self) -> "module.ttypes.StructWithDoubleUnderscores": ...  # type: ignore

TBinary = bytes
IntTypedef = int
UintTypedef = int
SomeListOfTypeMap_2468 = _typing.List[_fbthrift_python_mutable_containers.MutableMap[int, str]]
TBinary_8623 = bytes
i32_9314 = int
list_i32_9187 = _typing.List[int]
map_i32_i32_9565 = _typing.Dict[int, int]
map_i32_string_1261 = _typing.Dict[int, str]
set_i32_7070 = _typing.Set[int]
set_i32_7194 = _typing.Set[int]
string_5252 = str


class _fbthrift_SomeService_bounce_map_args(_fbthrift_python_types.Struct):
    m: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[int, str]] = ...

    def __init__(
        self, *,
        m: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]]=...
    ) -> None: ...

    def __iter__(self) -> _typing.Iterator[_typing.Tuple[
        str,
        _typing.Union[None, _fbthrift_python_mutable_containers.MutableMap[int, str]]]]: ...


class _fbthrift_SomeService_bounce_map_result(_fbthrift_python_types.Struct):
    success: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[int, str]]

    def __init__(
        self, *, success: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]] = ...
    ) -> None: ...

    def __iter__(self) -> _typing.Iterator[_typing.Tuple[
        str,
        _typing.Union[
            _fbthrift_python_mutable_containers.MutableMap[int, str],
        ]]]: ...


class _fbthrift_SomeService_binary_keyed_map_args(_fbthrift_python_types.Struct):
    r: _typing.Final[_fbthrift_python_mutable_containers.MutableList[int]] = ...

    def __init__(
        self, *,
        r: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int]]=...
    ) -> None: ...

    def __iter__(self) -> _typing.Iterator[_typing.Tuple[
        str,
        _typing.Union[None, _fbthrift_python_mutable_containers.MutableList[int]]]]: ...


class _fbthrift_SomeService_binary_keyed_map_result(_fbthrift_python_types.Struct):
    success: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[bytes, int]]

    def __init__(
        self, *, success: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[bytes, int]] = ...
    ) -> None: ...

    def __iter__(self) -> _typing.Iterator[_typing.Tuple[
        str,
        _typing.Union[
            _fbthrift_python_mutable_containers.MutableMap[bytes, int],
        ]]]: ...
