diff --git a/third-party/thrift/src/thrift/compiler/generate/templates/python/clients/clients.mustache b/third-party/thrift/src/thrift/compiler/generate/templates/python/clients/clients.mustache index 31a4a10d51ae66..8f9e4f1efa1bf9 100644 --- a/third-party/thrift/src/thrift/compiler/generate/templates/python/clients/clients.mustache +++ b/third-party/thrift/src/thrift/compiler/generate/templates/python/clients/clients.mustache @@ -31,6 +31,7 @@ from {{program:base_library_package}}.client import ( from {{program:base_library_package}}.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from {{program:base_library_package}}.common import RpcOptions{{! }}{{#program:generate_mutable_types}} +import {{program:base_library_package}}.mutable_containers as _fbthrift_python_mutable_containers import {{program:base_library_package}}.mutable_exceptions as _fbthrift_python_mutable_exceptions import {{program:base_library_package}}.mutable_types as _fbthrift_python_mutable_types{{! }}{{/program:generate_mutable_types}} diff --git a/third-party/thrift/src/thrift/compiler/generate/templates/python/services/services.mustache b/third-party/thrift/src/thrift/compiler/generate/templates/python/services/services.mustache index 314ce54290ad25..cf8c6edd8eef82 100644 --- a/third-party/thrift/src/thrift/compiler/generate/templates/python/services/services.mustache +++ b/third-party/thrift/src/thrift/compiler/generate/templates/python/services/services.mustache @@ -30,6 +30,7 @@ import apache.thrift.metadata.thrift_types as _fbthrift_metadata from {{program:base_library_package}}.serializer import serialize_iobuf, deserialize, Protocol {{/program:generate_immutable_types}} {{#program:generate_mutable_types}} +import {{program:base_library_package}}.mutable_containers as _fbthrift_python_mutable_containers from {{program:base_library_package}}.mutable_serializer import serialize_iobuf, deserialize, Protocol {{/program:generate_mutable_types}} from {{program:base_library_package}}.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/generate/templates/python/types/service_arg_types_pyi.mustache b/third-party/thrift/src/thrift/compiler/generate/templates/python/types/service_arg_types_pyi.mustache index 04c11ede4e4b27..1cc1c0b0d62fea 100644 --- a/third-party/thrift/src/thrift/compiler/generate/templates/python/types/service_arg_types_pyi.mustache +++ b/third-party/thrift/src/thrift/compiler/generate/templates/python/types/service_arg_types_pyi.mustache @@ -19,7 +19,7 @@ The argument and result types for functions on thrift services (and interactions }}{{#service:supported_functions}} -class {{> types/function_args_type}}(_fbthrift_python_types.Struct): +class {{> types/function_args_type}}({{> types/struct_base }}): {{#function:args}} {{field:py_name}}: _typing.Final[{{#field:type}}{{> types/pep484_type}}{{/field:type}}] = ... {{/function:args}} @@ -37,7 +37,7 @@ class {{> types/function_args_type}}(_fbthrift_python_types.Struct): {{^function:oneway?}} -class _fbthrift_{{service:name}}_{{function:name}}_result(_fbthrift_python_types.Struct): +class _fbthrift_{{service:name}}_{{function:name}}_result({{> types/struct_base }}): {{#function:regular_response_type}} success: _typing.Final[{{> types/pep484_type }}] {{/function:regular_response_type}} diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py index 1b53e177886fc1..6fb6d989ebf0e8 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py index 200a783ab854ac..10147c29c5fbd0 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi index e11cfa5208d130..3babbb713d5bef 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi @@ -413,7 +413,7 @@ MyEnumAlias = _fbthrift_current_module.MyEnum MyDataItemAlias = _fbthrift_current_module.MyDataItem -class _fbthrift_FooService_simple_rpc_args(_fbthrift_python_types.Struct): +class _fbthrift_FooService_simple_rpc_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -424,7 +424,7 @@ class _fbthrift_FooService_simple_rpc_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_FooService_simple_rpc_result(_fbthrift_python_types.Struct): +class _fbthrift_FooService_simple_rpc_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -438,7 +438,7 @@ class _fbthrift_FooService_simple_rpc_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_FB303Service_simple_rpc_args(_fbthrift_python_types.Struct): +class _fbthrift_FB303Service_simple_rpc_args(_fbthrift_python_mutable_types.MutableStruct): int_parameter: _typing.Final[int] = ... def __init__( @@ -451,7 +451,7 @@ class _fbthrift_FB303Service_simple_rpc_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_FB303Service_simple_rpc_result(_fbthrift_python_types.Struct): +class _fbthrift_FB303Service_simple_rpc_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.ReservedKeyword] def __init__( @@ -465,7 +465,7 @@ class _fbthrift_FB303Service_simple_rpc_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -476,7 +476,7 @@ class _fbthrift_MyService_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_ping_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_ping_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -490,7 +490,7 @@ class _fbthrift_MyService_ping_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_getRandomData_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getRandomData_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -501,7 +501,7 @@ class _fbthrift_MyService_getRandomData_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_getRandomData_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getRandomData_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] def __init__( @@ -515,7 +515,7 @@ class _fbthrift_MyService_getRandomData_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_sink_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_sink_args(_fbthrift_python_mutable_types.MutableStruct): sink: _typing.Final[int] = ... def __init__( @@ -528,7 +528,7 @@ class _fbthrift_MyService_sink_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_sink_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_sink_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -542,7 +542,7 @@ class _fbthrift_MyService_sink_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_putDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_putDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... data: _typing.Final[str] = ... @@ -557,7 +557,7 @@ class _fbthrift_MyService_putDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int, str]]]: ... -class _fbthrift_MyService_putDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_putDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -571,7 +571,7 @@ class _fbthrift_MyService_putDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_hasDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_hasDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... def __init__( @@ -584,7 +584,7 @@ class _fbthrift_MyService_hasDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_hasDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_hasDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[bool] def __init__( @@ -598,7 +598,7 @@ class _fbthrift_MyService_hasDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_getDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... def __init__( @@ -611,7 +611,7 @@ class _fbthrift_MyService_getDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_getDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] def __init__( @@ -625,7 +625,7 @@ class _fbthrift_MyService_getDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_deleteDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_deleteDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... def __init__( @@ -638,7 +638,7 @@ class _fbthrift_MyService_deleteDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_deleteDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_deleteDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -652,7 +652,7 @@ class _fbthrift_MyService_deleteDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_lobDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_lobDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... data: _typing.Final[str] = ... @@ -667,7 +667,7 @@ class _fbthrift_MyService_lobDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int, str]]]: ... -class _fbthrift_MyService_invalid_return_for_hack_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_invalid_return_for_hack_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -678,7 +678,7 @@ class _fbthrift_MyService_invalid_return_for_hack_args(_fbthrift_python_types.St _typing.Union[None]]]: ... -class _fbthrift_MyService_invalid_return_for_hack_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_invalid_return_for_hack_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_python_mutable_containers.MutableSet[float]] def __init__( @@ -692,7 +692,7 @@ class _fbthrift_MyService_invalid_return_for_hack_result(_fbthrift_python_types. ]]]: ... -class _fbthrift_MyService_rpc_skipped_codegen_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_rpc_skipped_codegen_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -703,7 +703,7 @@ class _fbthrift_MyService_rpc_skipped_codegen_args(_fbthrift_python_types.Struct _typing.Union[None]]]: ... -class _fbthrift_MyService_rpc_skipped_codegen_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_rpc_skipped_codegen_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -717,7 +717,7 @@ class _fbthrift_MyService_rpc_skipped_codegen_result(_fbthrift_python_types.Stru ]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey0_args(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey0_args(_fbthrift_python_mutable_types.MutableStruct): key: _typing.Final[str] = ... def __init__( @@ -730,7 +730,7 @@ class _fbthrift_DbMixedStackArguments_getDataByKey0_args(_fbthrift_python_types. _typing.Union[None, str]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey0_result(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey0_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[bytes] def __init__( @@ -744,7 +744,7 @@ class _fbthrift_DbMixedStackArguments_getDataByKey0_result(_fbthrift_python_type ]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey1_args(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey1_args(_fbthrift_python_mutable_types.MutableStruct): key: _typing.Final[str] = ... def __init__( @@ -757,7 +757,7 @@ class _fbthrift_DbMixedStackArguments_getDataByKey1_args(_fbthrift_python_types. _typing.Union[None, str]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey1_result(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey1_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[bytes] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py index 1b53e177886fc1..6fb6d989ebf0e8 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py index 200a783ab854ac..10147c29c5fbd0 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi index 61d93a6e493b1a..bde410d50cadaf 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/basic/module/thrift_mutable_types.pyi @@ -412,7 +412,7 @@ MyEnumAlias = _fbthrift_current_module.MyEnum MyDataItemAlias = _fbthrift_current_module.MyDataItem -class _fbthrift_FooService_simple_rpc_args(_fbthrift_python_types.Struct): +class _fbthrift_FooService_simple_rpc_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -423,7 +423,7 @@ class _fbthrift_FooService_simple_rpc_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_FooService_simple_rpc_result(_fbthrift_python_types.Struct): +class _fbthrift_FooService_simple_rpc_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -437,7 +437,7 @@ class _fbthrift_FooService_simple_rpc_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_FB303Service_simple_rpc_args(_fbthrift_python_types.Struct): +class _fbthrift_FB303Service_simple_rpc_args(_fbthrift_python_mutable_types.MutableStruct): int_parameter: _typing.Final[int] = ... def __init__( @@ -450,7 +450,7 @@ class _fbthrift_FB303Service_simple_rpc_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_FB303Service_simple_rpc_result(_fbthrift_python_types.Struct): +class _fbthrift_FB303Service_simple_rpc_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.ReservedKeyword] def __init__( @@ -464,7 +464,7 @@ class _fbthrift_FB303Service_simple_rpc_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -475,7 +475,7 @@ class _fbthrift_MyService_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_ping_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_ping_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -489,7 +489,7 @@ class _fbthrift_MyService_ping_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_getRandomData_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getRandomData_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -500,7 +500,7 @@ class _fbthrift_MyService_getRandomData_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_getRandomData_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getRandomData_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] def __init__( @@ -514,7 +514,7 @@ class _fbthrift_MyService_getRandomData_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_sink_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_sink_args(_fbthrift_python_mutable_types.MutableStruct): sink: _typing.Final[int] = ... def __init__( @@ -527,7 +527,7 @@ class _fbthrift_MyService_sink_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_sink_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_sink_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -541,7 +541,7 @@ class _fbthrift_MyService_sink_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_putDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_putDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... data: _typing.Final[str] = ... @@ -556,7 +556,7 @@ class _fbthrift_MyService_putDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int, str]]]: ... -class _fbthrift_MyService_putDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_putDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -570,7 +570,7 @@ class _fbthrift_MyService_putDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_hasDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_hasDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... def __init__( @@ -583,7 +583,7 @@ class _fbthrift_MyService_hasDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_hasDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_hasDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[bool] def __init__( @@ -597,7 +597,7 @@ class _fbthrift_MyService_hasDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_getDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... def __init__( @@ -610,7 +610,7 @@ class _fbthrift_MyService_getDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_getDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_getDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] def __init__( @@ -624,7 +624,7 @@ class _fbthrift_MyService_getDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_deleteDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_deleteDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... def __init__( @@ -637,7 +637,7 @@ class _fbthrift_MyService_deleteDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_deleteDataById_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_deleteDataById_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -651,7 +651,7 @@ class _fbthrift_MyService_deleteDataById_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_lobDataById_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_lobDataById_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... data: _typing.Final[str] = ... @@ -666,7 +666,7 @@ class _fbthrift_MyService_lobDataById_args(_fbthrift_python_types.Struct): _typing.Union[None, int, str]]]: ... -class _fbthrift_MyService_invalid_return_for_hack_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_invalid_return_for_hack_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -677,7 +677,7 @@ class _fbthrift_MyService_invalid_return_for_hack_args(_fbthrift_python_types.St _typing.Union[None]]]: ... -class _fbthrift_MyService_invalid_return_for_hack_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_invalid_return_for_hack_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_python_mutable_containers.MutableSet[float]] def __init__( @@ -691,7 +691,7 @@ class _fbthrift_MyService_invalid_return_for_hack_result(_fbthrift_python_types. ]]]: ... -class _fbthrift_MyService_rpc_skipped_codegen_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_rpc_skipped_codegen_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -702,7 +702,7 @@ class _fbthrift_MyService_rpc_skipped_codegen_args(_fbthrift_python_types.Struct _typing.Union[None]]]: ... -class _fbthrift_MyService_rpc_skipped_codegen_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_rpc_skipped_codegen_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -716,7 +716,7 @@ class _fbthrift_MyService_rpc_skipped_codegen_result(_fbthrift_python_types.Stru ]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey0_args(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey0_args(_fbthrift_python_mutable_types.MutableStruct): key: _typing.Final[str] = ... def __init__( @@ -729,7 +729,7 @@ class _fbthrift_DbMixedStackArguments_getDataByKey0_args(_fbthrift_python_types. _typing.Union[None, str]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey0_result(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey0_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[bytes] def __init__( @@ -743,7 +743,7 @@ class _fbthrift_DbMixedStackArguments_getDataByKey0_result(_fbthrift_python_type ]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey1_args(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey1_args(_fbthrift_python_mutable_types.MutableStruct): key: _typing.Final[str] = ... def __init__( @@ -756,7 +756,7 @@ class _fbthrift_DbMixedStackArguments_getDataByKey1_args(_fbthrift_python_types. _typing.Union[None, str]]]: ... -class _fbthrift_DbMixedStackArguments_getDataByKey1_result(_fbthrift_python_types.Struct): +class _fbthrift_DbMixedStackArguments_getDataByKey1_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[bytes] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_clients.py index e3208152e3a5cd..9811228aee7b52 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_services.py index 4d6b8f02009354..de57695759c010 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_types.pyi index a3e3e0dec3e9a9..843c5490863044 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/basic/out/python_experimental_generate_mutable_types_service/gen-python/meta/example/thrift/service/thrift_mutable_types.pyi @@ -109,7 +109,7 @@ class WhisperException(_fbthrift_python_mutable_exceptions.MutableGeneratedError def _to_py_deprecated(self) -> "service.ttypes.WhisperException": ... # type: ignore -class _fbthrift_EchoService_echo_args(_fbthrift_python_types.Struct): +class _fbthrift_EchoService_echo_args(_fbthrift_python_mutable_types.MutableStruct): request: _typing.Final[_fbthrift_current_module.EchoRequest] = ... def __init__( @@ -122,7 +122,7 @@ class _fbthrift_EchoService_echo_args(_fbthrift_python_types.Struct): _typing.Union[None, _fbthrift_current_module.EchoRequest]]]: ... -class _fbthrift_EchoService_echo_result(_fbthrift_python_types.Struct): +class _fbthrift_EchoService_echo_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.EchoResponse] ex: _typing.Final[_fbthrift_current_module.WhisperException] diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py index f8deadc6ea7be2..9930ddf611e6dd 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py index 3225e0a2e1b187..86ab1cd52dcdf8 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index 691ec2534dfb69..2892dcc36d951e 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -215,7 +215,7 @@ class Banal(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthrift def _to_py_deprecated(self) -> "module.ttypes.Banal": ... # type: ignore -class _fbthrift_Raiser_doBland_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doBland_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -226,7 +226,7 @@ class _fbthrift_Raiser_doBland_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_doBland_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doBland_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -240,7 +240,7 @@ class _fbthrift_Raiser_doBland_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Raiser_doRaise_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doRaise_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -251,7 +251,7 @@ class _fbthrift_Raiser_doRaise_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_doRaise_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doRaise_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] b: _typing.Final[_fbthrift_current_module.Banal] f: _typing.Final[_fbthrift_current_module.Fiery] @@ -271,7 +271,7 @@ class _fbthrift_Raiser_doRaise_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Raiser_get200_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get200_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -282,7 +282,7 @@ class _fbthrift_Raiser_get200_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_get200_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get200_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] def __init__( @@ -296,7 +296,7 @@ class _fbthrift_Raiser_get200_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Raiser_get500_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get500_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -307,7 +307,7 @@ class _fbthrift_Raiser_get500_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_get500_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get500_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] f: _typing.Final[_fbthrift_current_module.Fiery] b: _typing.Final[_fbthrift_current_module.Banal] diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py index f8deadc6ea7be2..9930ddf611e6dd 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py index 3225e0a2e1b187..86ab1cd52dcdf8 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index e0b56043edc6ff..a8f3c38ce5032b 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -214,7 +214,7 @@ class Banal(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthrift def _to_py_deprecated(self) -> "module.ttypes.Banal": ... # type: ignore -class _fbthrift_Raiser_doBland_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doBland_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -225,7 +225,7 @@ class _fbthrift_Raiser_doBland_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_doBland_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doBland_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -239,7 +239,7 @@ class _fbthrift_Raiser_doBland_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Raiser_doRaise_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doRaise_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -250,7 +250,7 @@ class _fbthrift_Raiser_doRaise_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_doRaise_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_doRaise_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] b: _typing.Final[_fbthrift_current_module.Banal] f: _typing.Final[_fbthrift_current_module.Fiery] @@ -270,7 +270,7 @@ class _fbthrift_Raiser_doRaise_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Raiser_get200_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get200_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -281,7 +281,7 @@ class _fbthrift_Raiser_get200_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_get200_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get200_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] def __init__( @@ -295,7 +295,7 @@ class _fbthrift_Raiser_get200_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Raiser_get500_args(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get500_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -306,7 +306,7 @@ class _fbthrift_Raiser_get500_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Raiser_get500_result(_fbthrift_python_types.Struct): +class _fbthrift_Raiser_get500_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[str] f: _typing.Final[_fbthrift_current_module.Fiery] b: _typing.Final[_fbthrift_current_module.Banal] diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py index 3d033c791666d4..aed30a947092af 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py index 393fd492bf3570..bac4fb913da47e 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi index 90596890ec1975..ec10ead913e346 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi @@ -85,7 +85,7 @@ class ShouldBeBoxed(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp def _to_py_deprecated(self) -> "test.fixtures.interactions.ttypes.ShouldBeBoxed": ... # type: ignore -class _fbthrift_MyService_foo_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_foo_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -96,7 +96,7 @@ class _fbthrift_MyService_foo_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_foo_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_foo_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -110,7 +110,7 @@ class _fbthrift_MyService_foo_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_interact_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interact_args(_fbthrift_python_mutable_types.MutableStruct): arg: _typing.Final[int] = ... def __init__( @@ -123,7 +123,7 @@ class _fbthrift_MyService_interact_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_interact_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interact_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -137,7 +137,7 @@ class _fbthrift_MyService_interact_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_interactFast_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interactFast_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -148,7 +148,7 @@ class _fbthrift_MyService_interactFast_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_interactFast_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interactFast_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -162,7 +162,7 @@ class _fbthrift_MyService_interactFast_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_serialize_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_serialize_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -173,7 +173,7 @@ class _fbthrift_MyService_serialize_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_serialize_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_serialize_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -200,7 +200,7 @@ class _fbthrift_MyService_serialize_result_stream(_fbthrift_python_types._fbthri ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -211,7 +211,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -227,7 +227,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -238,7 +238,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -249,7 +249,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -276,7 +276,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -287,7 +287,7 @@ class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -301,7 +301,7 @@ class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -312,7 +312,7 @@ class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -323,7 +323,7 @@ class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -350,7 +350,7 @@ class _fbthrift_MyInteractionFast_truthify_result_stream(_fbthrift_python_types. ]]]: ... -class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -361,7 +361,7 @@ class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -375,7 +375,7 @@ class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_Factories_foo_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_foo_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -386,7 +386,7 @@ class _fbthrift_Factories_foo_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Factories_foo_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_foo_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -400,7 +400,7 @@ class _fbthrift_Factories_foo_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Factories_interact_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interact_args(_fbthrift_python_mutable_types.MutableStruct): arg: _typing.Final[int] = ... def __init__( @@ -413,7 +413,7 @@ class _fbthrift_Factories_interact_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_Factories_interact_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interact_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -427,7 +427,7 @@ class _fbthrift_Factories_interact_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Factories_interactFast_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interactFast_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -438,7 +438,7 @@ class _fbthrift_Factories_interactFast_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Factories_interactFast_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interactFast_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -452,7 +452,7 @@ class _fbthrift_Factories_interactFast_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Factories_serialize_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_serialize_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -463,7 +463,7 @@ class _fbthrift_Factories_serialize_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Factories_serialize_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_serialize_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -490,7 +490,7 @@ class _fbthrift_Factories_serialize_result_stream(_fbthrift_python_types._fbthri ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -501,7 +501,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -517,7 +517,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -528,7 +528,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -539,7 +539,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -566,7 +566,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -577,7 +577,7 @@ class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -591,7 +591,7 @@ class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -602,7 +602,7 @@ class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -613,7 +613,7 @@ class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -640,7 +640,7 @@ class _fbthrift_MyInteractionFast_truthify_result_stream(_fbthrift_python_types. ]]]: ... -class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -651,7 +651,7 @@ class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -665,7 +665,7 @@ class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_Perform_foo_args(_fbthrift_python_types.Struct): +class _fbthrift_Perform_foo_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -676,7 +676,7 @@ class _fbthrift_Perform_foo_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Perform_foo_result(_fbthrift_python_types.Struct): +class _fbthrift_Perform_foo_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -690,7 +690,7 @@ class _fbthrift_Perform_foo_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -701,7 +701,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -717,7 +717,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -728,7 +728,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -739,7 +739,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -766,7 +766,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -777,7 +777,7 @@ class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -791,7 +791,7 @@ class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -802,7 +802,7 @@ class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -813,7 +813,7 @@ class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -840,7 +840,7 @@ class _fbthrift_MyInteractionFast_truthify_result_stream(_fbthrift_python_types. ]]]: ... -class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -851,7 +851,7 @@ class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -865,7 +865,7 @@ class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_InteractWithShared_do_some_similar_things_args(_fbthrift_python_types.Struct): +class _fbthrift_InteractWithShared_do_some_similar_things_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -876,7 +876,7 @@ class _fbthrift_InteractWithShared_do_some_similar_things_args(_fbthrift_python_ _typing.Union[None]]]: ... -class _fbthrift_InteractWithShared_do_some_similar_things_result(_fbthrift_python_types.Struct): +class _fbthrift_InteractWithShared_do_some_similar_things_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift__test__fixtures__another_interactions__shared__thrift_mutable_types.DoSomethingResult] def __init__( @@ -890,7 +890,7 @@ class _fbthrift_InteractWithShared_do_some_similar_things_result(_fbthrift_pytho ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -901,7 +901,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -917,7 +917,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -928,7 +928,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -939,7 +939,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -966,7 +966,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_SharedInteraction_init_args(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_init_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -977,7 +977,7 @@ class _fbthrift_SharedInteraction_init_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_SharedInteraction_init_result(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_init_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -991,7 +991,7 @@ class _fbthrift_SharedInteraction_init_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_SharedInteraction_do_something_args(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_do_something_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -1002,7 +1002,7 @@ class _fbthrift_SharedInteraction_do_something_args(_fbthrift_python_types.Struc _typing.Union[None]]]: ... -class _fbthrift_SharedInteraction_do_something_result(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_do_something_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift__test__fixtures__another_interactions__shared__thrift_mutable_types.DoSomethingResult] def __init__( @@ -1016,7 +1016,7 @@ class _fbthrift_SharedInteraction_do_something_result(_fbthrift_python_types.Str ]]]: ... -class _fbthrift_SharedInteraction_tear_down_args(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_tear_down_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -1027,7 +1027,7 @@ class _fbthrift_SharedInteraction_tear_down_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_SharedInteraction_tear_down_result(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_tear_down_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -1041,7 +1041,7 @@ class _fbthrift_SharedInteraction_tear_down_result(_fbthrift_python_types.Struct ]]]: ... -class _fbthrift_BoxService_getABoxSession_args(_fbthrift_python_types.Struct): +class _fbthrift_BoxService_getABoxSession_args(_fbthrift_python_mutable_types.MutableStruct): req: _typing.Final[_fbthrift_current_module.ShouldBeBoxed] = ... def __init__( @@ -1054,7 +1054,7 @@ class _fbthrift_BoxService_getABoxSession_args(_fbthrift_python_types.Struct): _typing.Union[None, _fbthrift_current_module.ShouldBeBoxed]]]: ... -class _fbthrift_BoxService_getABoxSession_result(_fbthrift_python_types.Struct): +class _fbthrift_BoxService_getABoxSession_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.ShouldBeBoxed] def __init__( @@ -1068,7 +1068,7 @@ class _fbthrift_BoxService_getABoxSession_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_BoxedInteraction_getABox_args(_fbthrift_python_types.Struct): +class _fbthrift_BoxedInteraction_getABox_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -1079,7 +1079,7 @@ class _fbthrift_BoxedInteraction_getABox_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_BoxedInteraction_getABox_result(_fbthrift_python_types.Struct): +class _fbthrift_BoxedInteraction_getABox_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.ShouldBeBoxed] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py index 3d033c791666d4..aed30a947092af 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py index 393fd492bf3570..bac4fb913da47e 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi index 6489c57216a2ef..2083c55b2ac762 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/interactions/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/interactions/module/thrift_mutable_types.pyi @@ -84,7 +84,7 @@ class ShouldBeBoxed(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp def _to_py_deprecated(self) -> "test.fixtures.interactions.ttypes.ShouldBeBoxed": ... # type: ignore -class _fbthrift_MyService_foo_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_foo_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -95,7 +95,7 @@ class _fbthrift_MyService_foo_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_foo_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_foo_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -109,7 +109,7 @@ class _fbthrift_MyService_foo_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_interact_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interact_args(_fbthrift_python_mutable_types.MutableStruct): arg: _typing.Final[int] = ... def __init__( @@ -122,7 +122,7 @@ class _fbthrift_MyService_interact_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_MyService_interact_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interact_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -136,7 +136,7 @@ class _fbthrift_MyService_interact_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_interactFast_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interactFast_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -147,7 +147,7 @@ class _fbthrift_MyService_interactFast_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_interactFast_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_interactFast_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -161,7 +161,7 @@ class _fbthrift_MyService_interactFast_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyService_serialize_args(_fbthrift_python_types.Struct): +class _fbthrift_MyService_serialize_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -172,7 +172,7 @@ class _fbthrift_MyService_serialize_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyService_serialize_result(_fbthrift_python_types.Struct): +class _fbthrift_MyService_serialize_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -199,7 +199,7 @@ class _fbthrift_MyService_serialize_result_stream(_fbthrift_python_types._fbthri ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -210,7 +210,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -226,7 +226,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -237,7 +237,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -248,7 +248,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -275,7 +275,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -286,7 +286,7 @@ class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -300,7 +300,7 @@ class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -311,7 +311,7 @@ class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -322,7 +322,7 @@ class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -349,7 +349,7 @@ class _fbthrift_MyInteractionFast_truthify_result_stream(_fbthrift_python_types. ]]]: ... -class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -360,7 +360,7 @@ class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -374,7 +374,7 @@ class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_Factories_foo_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_foo_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -385,7 +385,7 @@ class _fbthrift_Factories_foo_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Factories_foo_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_foo_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -399,7 +399,7 @@ class _fbthrift_Factories_foo_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Factories_interact_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interact_args(_fbthrift_python_mutable_types.MutableStruct): arg: _typing.Final[int] = ... def __init__( @@ -412,7 +412,7 @@ class _fbthrift_Factories_interact_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_Factories_interact_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interact_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -426,7 +426,7 @@ class _fbthrift_Factories_interact_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Factories_interactFast_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interactFast_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -437,7 +437,7 @@ class _fbthrift_Factories_interactFast_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Factories_interactFast_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_interactFast_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -451,7 +451,7 @@ class _fbthrift_Factories_interactFast_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_Factories_serialize_args(_fbthrift_python_types.Struct): +class _fbthrift_Factories_serialize_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -462,7 +462,7 @@ class _fbthrift_Factories_serialize_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Factories_serialize_result(_fbthrift_python_types.Struct): +class _fbthrift_Factories_serialize_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -489,7 +489,7 @@ class _fbthrift_Factories_serialize_result_stream(_fbthrift_python_types._fbthri ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -500,7 +500,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -516,7 +516,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -527,7 +527,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -538,7 +538,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -565,7 +565,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -576,7 +576,7 @@ class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -590,7 +590,7 @@ class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -601,7 +601,7 @@ class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -612,7 +612,7 @@ class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -639,7 +639,7 @@ class _fbthrift_MyInteractionFast_truthify_result_stream(_fbthrift_python_types. ]]]: ... -class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -650,7 +650,7 @@ class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -664,7 +664,7 @@ class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_Perform_foo_args(_fbthrift_python_types.Struct): +class _fbthrift_Perform_foo_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -675,7 +675,7 @@ class _fbthrift_Perform_foo_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_Perform_foo_result(_fbthrift_python_types.Struct): +class _fbthrift_Perform_foo_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -689,7 +689,7 @@ class _fbthrift_Perform_foo_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -700,7 +700,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -716,7 +716,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -727,7 +727,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -738,7 +738,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -765,7 +765,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -776,7 +776,7 @@ class _fbthrift_MyInteractionFast_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -790,7 +790,7 @@ class _fbthrift_MyInteractionFast_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -801,7 +801,7 @@ class _fbthrift_MyInteractionFast_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -812,7 +812,7 @@ class _fbthrift_MyInteractionFast_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteractionFast_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -839,7 +839,7 @@ class _fbthrift_MyInteractionFast_truthify_result_stream(_fbthrift_python_types. ]]]: ... -class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -850,7 +850,7 @@ class _fbthrift_SerialInteraction_frobnicate_args(_fbthrift_python_types.Struct) _typing.Union[None]]]: ... -class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -864,7 +864,7 @@ class _fbthrift_SerialInteraction_frobnicate_result(_fbthrift_python_types.Struc ]]]: ... -class _fbthrift_InteractWithShared_do_some_similar_things_args(_fbthrift_python_types.Struct): +class _fbthrift_InteractWithShared_do_some_similar_things_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -875,7 +875,7 @@ class _fbthrift_InteractWithShared_do_some_similar_things_args(_fbthrift_python_ _typing.Union[None]]]: ... -class _fbthrift_InteractWithShared_do_some_similar_things_result(_fbthrift_python_types.Struct): +class _fbthrift_InteractWithShared_do_some_similar_things_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift__test__fixtures__another_interactions__shared__thrift_mutable_types.DoSomethingResult] def __init__( @@ -889,7 +889,7 @@ class _fbthrift_InteractWithShared_do_some_similar_things_result(_fbthrift_pytho ]]]: ... -class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -900,7 +900,7 @@ class _fbthrift_MyInteraction_frobnicate_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] ex: _typing.Final[_fbthrift_current_module.CustomException] @@ -916,7 +916,7 @@ class _fbthrift_MyInteraction_frobnicate_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_ping_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -927,7 +927,7 @@ class _fbthrift_MyInteraction_ping_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -938,7 +938,7 @@ class _fbthrift_MyInteraction_truthify_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_types.Struct): +class _fbthrift_MyInteraction_truthify_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -965,7 +965,7 @@ class _fbthrift_MyInteraction_truthify_result_stream(_fbthrift_python_types._fbt ]]]: ... -class _fbthrift_SharedInteraction_init_args(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_init_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -976,7 +976,7 @@ class _fbthrift_SharedInteraction_init_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_SharedInteraction_init_result(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_init_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -990,7 +990,7 @@ class _fbthrift_SharedInteraction_init_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_SharedInteraction_do_something_args(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_do_something_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -1001,7 +1001,7 @@ class _fbthrift_SharedInteraction_do_something_args(_fbthrift_python_types.Struc _typing.Union[None]]]: ... -class _fbthrift_SharedInteraction_do_something_result(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_do_something_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift__test__fixtures__another_interactions__shared__thrift_mutable_types.DoSomethingResult] def __init__( @@ -1015,7 +1015,7 @@ class _fbthrift_SharedInteraction_do_something_result(_fbthrift_python_types.Str ]]]: ... -class _fbthrift_SharedInteraction_tear_down_args(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_tear_down_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -1026,7 +1026,7 @@ class _fbthrift_SharedInteraction_tear_down_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_SharedInteraction_tear_down_result(_fbthrift_python_types.Struct): +class _fbthrift_SharedInteraction_tear_down_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -1040,7 +1040,7 @@ class _fbthrift_SharedInteraction_tear_down_result(_fbthrift_python_types.Struct ]]]: ... -class _fbthrift_BoxService_getABoxSession_args(_fbthrift_python_types.Struct): +class _fbthrift_BoxService_getABoxSession_args(_fbthrift_python_mutable_types.MutableStruct): req: _typing.Final[_fbthrift_current_module.ShouldBeBoxed] = ... def __init__( @@ -1053,7 +1053,7 @@ class _fbthrift_BoxService_getABoxSession_args(_fbthrift_python_types.Struct): _typing.Union[None, _fbthrift_current_module.ShouldBeBoxed]]]: ... -class _fbthrift_BoxService_getABoxSession_result(_fbthrift_python_types.Struct): +class _fbthrift_BoxService_getABoxSession_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.ShouldBeBoxed] def __init__( @@ -1067,7 +1067,7 @@ class _fbthrift_BoxService_getABoxSession_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_BoxedInteraction_getABox_args(_fbthrift_python_types.Struct): +class _fbthrift_BoxedInteraction_getABox_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -1078,7 +1078,7 @@ class _fbthrift_BoxedInteraction_getABox_args(_fbthrift_python_types.Struct): _typing.Union[None]]]: ... -class _fbthrift_BoxedInteraction_getABox_result(_fbthrift_python_types.Struct): +class _fbthrift_BoxedInteraction_getABox_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.ShouldBeBoxed] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py index 912050be0895c1..d2326832240f5f 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py index f5da71a848e7e7..1c210bff5165a5 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi index efe28ec7952c02..e9c3fa65151500 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi @@ -60,7 +60,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit def _to_py_deprecated(self) -> "namespace_from_package.module.ttypes.Foo": ... # type: ignore -class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_args(_fbthrift_python_mutable_types.MutableStruct): int1: _typing.Final[int] = ... def __init__( @@ -73,7 +73,7 @@ class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_TestService_init_result(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py index 912050be0895c1..d2326832240f5f 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py index f5da71a848e7e7..1c210bff5165a5 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi index bad63c20e03b8b..27d1d980ed43e8 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package/module/thrift_mutable_types.pyi @@ -59,7 +59,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit def _to_py_deprecated(self) -> "namespace_from_package.module.ttypes.Foo": ... # type: ignore -class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_args(_fbthrift_python_mutable_types.MutableStruct): int1: _typing.Final[int] = ... def __init__( @@ -72,7 +72,7 @@ class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_TestService_init_result(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py index 783861751ba075..ccf2ad59fe0e10 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py index bf539b60c4060c..9e65d946265995 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi index 2c27f1b53ff432..62415d529622dc 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_abstract_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi @@ -60,7 +60,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit def _to_py_deprecated(self) -> "namespace_from_package_without_module_name.module.ttypes.Foo": ... # type: ignore -class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_args(_fbthrift_python_mutable_types.MutableStruct): int1: _typing.Final[int] = ... def __init__( @@ -73,7 +73,7 @@ class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_TestService_init_result(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py index 783861751ba075..ccf2ad59fe0e10 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py index bf539b60c4060c..9e65d946265995 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi index 500ae2ab55d696..955bcdf2d253ee 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/out/python_experimental_generate_mutable_types/gen-python/test/namespace_from_package_without_module_name/module/thrift_mutable_types.pyi @@ -59,7 +59,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit def _to_py_deprecated(self) -> "namespace_from_package_without_module_name.module.ttypes.Foo": ... # type: ignore -class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_args(_fbthrift_python_mutable_types.MutableStruct): int1: _typing.Final[int] = ... def __init__( @@ -72,7 +72,7 @@ class _fbthrift_TestService_init_args(_fbthrift_python_types.Struct): _typing.Union[None, int]]]: ... -class _fbthrift_TestService_init_result(_fbthrift_python_types.Struct): +class _fbthrift_TestService_init_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py index 5cecc280a0b26d..040ccf31eb685b 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py index a2f0379ad03f6b..2c12e19f1f32cc 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index 0058c109b356b9..8152bd551d0aa2 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/service-schema/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -68,7 +68,7 @@ class CustomException(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthrift_schema_b747839c13cb3aa5: bytes = ... -class _fbthrift_PrimitivesService_init_args(_fbthrift_python_types.Struct): +class _fbthrift_PrimitivesService_init_args(_fbthrift_python_mutable_types.MutableStruct): param0: _typing.Final[int] = ... param1: _typing.Final[int] = ... @@ -83,7 +83,7 @@ class _fbthrift_PrimitivesService_init_args(_fbthrift_python_types.Struct): _typing.Union[None, int, int]]]: ... -class _fbthrift_PrimitivesService_init_result(_fbthrift_python_types.Struct): +class _fbthrift_PrimitivesService_init_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -97,7 +97,7 @@ class _fbthrift_PrimitivesService_init_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_PrimitivesService_method_that_throws_args(_fbthrift_python_types.Struct): +class _fbthrift_PrimitivesService_method_that_throws_args(_fbthrift_python_mutable_types.MutableStruct): def __init__( self, @@ -108,7 +108,7 @@ class _fbthrift_PrimitivesService_method_that_throws_args(_fbthrift_python_types _typing.Union[None]]]: ... -class _fbthrift_PrimitivesService_method_that_throws_result(_fbthrift_python_types.Struct): +class _fbthrift_PrimitivesService_method_that_throws_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_current_module.Result] e: _typing.Final[_fbthrift_current_module.CustomException] @@ -124,7 +124,7 @@ class _fbthrift_PrimitivesService_method_that_throws_result(_fbthrift_python_typ ]]]: ... -class _fbthrift_PrimitivesService_return_void_method_args(_fbthrift_python_types.Struct): +class _fbthrift_PrimitivesService_return_void_method_args(_fbthrift_python_mutable_types.MutableStruct): id: _typing.Final[int] = ... def __init__( @@ -137,7 +137,7 @@ class _fbthrift_PrimitivesService_return_void_method_args(_fbthrift_python_types _typing.Union[None, int]]]: ... -class _fbthrift_PrimitivesService_return_void_method_result(_fbthrift_python_types.Struct): +class _fbthrift_PrimitivesService_return_void_method_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py index 90b4c88d95c3e1..c07c97a988c8d3 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py index 710f6cec12ef4a..267d13c448993c 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index de97c19a1ef52a..bc1ff4d5881fee 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -81,7 +81,7 @@ class FooEx2(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthrif def _to_py_deprecated(self) -> "module.ttypes.FooEx2": ... # type: ignore -class _fbthrift_PubSubStreamingService_returnstream_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstream_args(_fbthrift_python_mutable_types.MutableStruct): i32_from: _typing.Final[int] = ... i32_to: _typing.Final[int] = ... @@ -96,7 +96,7 @@ class _fbthrift_PubSubStreamingService_returnstream_args(_fbthrift_python_types. _typing.Union[None, int, int]]]: ... -class _fbthrift_PubSubStreamingService_returnstream_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstream_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -123,7 +123,7 @@ class _fbthrift_PubSubStreamingService_returnstream_result_stream(_fbthrift_pyth ]]]: ... -class _fbthrift_PubSubStreamingService_streamthrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_streamthrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -136,7 +136,7 @@ class _fbthrift_PubSubStreamingService_streamthrows_args(_fbthrift_python_types. _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_streamthrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_streamthrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -165,7 +165,7 @@ class _fbthrift_PubSubStreamingService_streamthrows_result_stream(_fbthrift_pyth ]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -178,7 +178,7 @@ class _fbthrift_PubSubStreamingService_servicethrows_args(_fbthrift_python_types _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -207,7 +207,7 @@ class _fbthrift_PubSubStreamingService_servicethrows_result_stream(_fbthrift_pyt ]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows2_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows2_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -220,7 +220,7 @@ class _fbthrift_PubSubStreamingService_servicethrows2_args(_fbthrift_python_type _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows2_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows2_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] e1: _typing.Final[_fbthrift_current_module.FooEx] e2: _typing.Final[_fbthrift_current_module.FooEx2] @@ -251,7 +251,7 @@ class _fbthrift_PubSubStreamingService_servicethrows2_result_stream(_fbthrift_py ]]]: ... -class _fbthrift_PubSubStreamingService_boththrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_boththrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -264,7 +264,7 @@ class _fbthrift_PubSubStreamingService_boththrows_args(_fbthrift_python_types.St _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_boththrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_boththrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -295,7 +295,7 @@ class _fbthrift_PubSubStreamingService_boththrows_result_stream(_fbthrift_python ]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -308,7 +308,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_args(_fbthr _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -337,7 +337,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_result_stre ]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -350,7 +350,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_args(_fbth _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -379,7 +379,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_result_str ]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamboththrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamboththrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -392,7 +392,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamboththrows_args(_fbthrif _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamboththrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamboththrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -423,7 +423,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamboththrows_result_stream ]]]: ... -class _fbthrift_PubSubStreamingService_returnstreamFast_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstreamFast_args(_fbthrift_python_mutable_types.MutableStruct): i32_from: _typing.Final[int] = ... i32_to: _typing.Final[int] = ... @@ -438,7 +438,7 @@ class _fbthrift_PubSubStreamingService_returnstreamFast_args(_fbthrift_python_ty _typing.Union[None, int, int]]]: ... -class _fbthrift_PubSubStreamingService_returnstreamFast_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstreamFast_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py index 90b4c88d95c3e1..c07c97a988c8d3 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py index 710f6cec12ef4a..267d13c448993c 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index c049e6dd462396..6b1c2e59a433bb 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/stream/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -80,7 +80,7 @@ class FooEx2(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthrif def _to_py_deprecated(self) -> "module.ttypes.FooEx2": ... # type: ignore -class _fbthrift_PubSubStreamingService_returnstream_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstream_args(_fbthrift_python_mutable_types.MutableStruct): i32_from: _typing.Final[int] = ... i32_to: _typing.Final[int] = ... @@ -95,7 +95,7 @@ class _fbthrift_PubSubStreamingService_returnstream_args(_fbthrift_python_types. _typing.Union[None, int, int]]]: ... -class _fbthrift_PubSubStreamingService_returnstream_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstream_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -122,7 +122,7 @@ class _fbthrift_PubSubStreamingService_returnstream_result_stream(_fbthrift_pyth ]]]: ... -class _fbthrift_PubSubStreamingService_streamthrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_streamthrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -135,7 +135,7 @@ class _fbthrift_PubSubStreamingService_streamthrows_args(_fbthrift_python_types. _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_streamthrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_streamthrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( @@ -164,7 +164,7 @@ class _fbthrift_PubSubStreamingService_streamthrows_result_stream(_fbthrift_pyth ]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -177,7 +177,7 @@ class _fbthrift_PubSubStreamingService_servicethrows_args(_fbthrift_python_types _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -206,7 +206,7 @@ class _fbthrift_PubSubStreamingService_servicethrows_result_stream(_fbthrift_pyt ]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows2_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows2_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -219,7 +219,7 @@ class _fbthrift_PubSubStreamingService_servicethrows2_args(_fbthrift_python_type _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_servicethrows2_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_servicethrows2_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] e1: _typing.Final[_fbthrift_current_module.FooEx] e2: _typing.Final[_fbthrift_current_module.FooEx2] @@ -250,7 +250,7 @@ class _fbthrift_PubSubStreamingService_servicethrows2_result_stream(_fbthrift_py ]]]: ... -class _fbthrift_PubSubStreamingService_boththrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_boththrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -263,7 +263,7 @@ class _fbthrift_PubSubStreamingService_boththrows_args(_fbthrift_python_types.St _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_boththrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_boththrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -294,7 +294,7 @@ class _fbthrift_PubSubStreamingService_boththrows_result_stream(_fbthrift_python ]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -307,7 +307,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_args(_fbthr _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] def __init__( @@ -336,7 +336,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamstreamthrows_result_stre ]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -349,7 +349,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_args(_fbth _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -378,7 +378,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamservicethrows_result_str ]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamboththrows_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamboththrows_args(_fbthrift_python_mutable_types.MutableStruct): foo: _typing.Final[int] = ... def __init__( @@ -391,7 +391,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamboththrows_args(_fbthrif _typing.Union[None, int]]]: ... -class _fbthrift_PubSubStreamingService_responseandstreamboththrows_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_responseandstreamboththrows_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[int] e: _typing.Final[_fbthrift_current_module.FooEx] @@ -422,7 +422,7 @@ class _fbthrift_PubSubStreamingService_responseandstreamboththrows_result_stream ]]]: ... -class _fbthrift_PubSubStreamingService_returnstreamFast_args(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstreamFast_args(_fbthrift_python_mutable_types.MutableStruct): i32_from: _typing.Final[int] = ... i32_to: _typing.Final[int] = ... @@ -437,7 +437,7 @@ class _fbthrift_PubSubStreamingService_returnstreamFast_args(_fbthrift_python_ty _typing.Union[None, int, int]]]: ... -class _fbthrift_PubSubStreamingService_returnstreamFast_result(_fbthrift_python_types.Struct): +class _fbthrift_PubSubStreamingService_returnstreamFast_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[None] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py index 5df794ad3dd806..196aec81d2a619 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py index 5d22646421eb7f..673801d5563bb3 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi index 10450f9232dd27..c3569a664e542d 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_abstract_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi @@ -1220,7 +1220,7 @@ set_i32_7194 = _typing.Set[int] string_5252 = str -class _fbthrift_SomeService_bounce_map_args(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_bounce_map_args(_fbthrift_python_mutable_types.MutableStruct): m: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[int, str]] = ... def __init__( @@ -1233,7 +1233,7 @@ class _fbthrift_SomeService_bounce_map_args(_fbthrift_python_types.Struct): _typing.Union[None, _fbthrift_python_mutable_containers.MutableMap[int, str]]]]: ... -class _fbthrift_SomeService_bounce_map_result(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_bounce_map_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[int, str]] def __init__( @@ -1247,7 +1247,7 @@ class _fbthrift_SomeService_bounce_map_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_SomeService_binary_keyed_map_args(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_binary_keyed_map_args(_fbthrift_python_mutable_types.MutableStruct): r: _typing.Final[_fbthrift_python_mutable_containers.MutableList[int]] = ... def __init__( @@ -1260,7 +1260,7 @@ class _fbthrift_SomeService_binary_keyed_map_args(_fbthrift_python_types.Struct) _typing.Union[None, _fbthrift_python_mutable_containers.MutableList[int]]]]: ... -class _fbthrift_SomeService_binary_keyed_map_result(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_binary_keyed_map_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[bytes, int]] def __init__( diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py index 5df794ad3dd806..196aec81d2a619 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_clients.py @@ -18,6 +18,7 @@ ) from thrift.python.client.omni_client import InteractionMethodPosition as _fbthrift_InteractionMethodPosition, FunctionQualifier as _fbthrift_FunctionQualifier from thrift.python.common import RpcOptions +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers import thrift.python.mutable_exceptions as _fbthrift_python_mutable_exceptions import thrift.python.mutable_types as _fbthrift_python_mutable_types import thrift.python.exceptions as _fbthrift_python_exceptions diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py index 5d22646421eb7f..673801d5563bb3 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_services.py @@ -13,6 +13,7 @@ import folly.iobuf as _fbthrift_iobuf import apache.thrift.metadata.thrift_types as _fbthrift_metadata +import thrift.python.mutable_containers as _fbthrift_python_mutable_containers from thrift.python.mutable_serializer import serialize_iobuf, deserialize, Protocol from thrift.python.server import ServiceInterface, RpcKind, PythonUserException diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi index 66f4a497ad40a6..77bcfb829772e7 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/types/out/python_experimental_generate_mutable_types/gen-python/apache/thrift/fixtures/types/module/thrift_mutable_types.pyi @@ -1219,7 +1219,7 @@ set_i32_7194 = _typing.Set[int] string_5252 = str -class _fbthrift_SomeService_bounce_map_args(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_bounce_map_args(_fbthrift_python_mutable_types.MutableStruct): m: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[int, str]] = ... def __init__( @@ -1232,7 +1232,7 @@ class _fbthrift_SomeService_bounce_map_args(_fbthrift_python_types.Struct): _typing.Union[None, _fbthrift_python_mutable_containers.MutableMap[int, str]]]]: ... -class _fbthrift_SomeService_bounce_map_result(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_bounce_map_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[int, str]] def __init__( @@ -1246,7 +1246,7 @@ class _fbthrift_SomeService_bounce_map_result(_fbthrift_python_types.Struct): ]]]: ... -class _fbthrift_SomeService_binary_keyed_map_args(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_binary_keyed_map_args(_fbthrift_python_mutable_types.MutableStruct): r: _typing.Final[_fbthrift_python_mutable_containers.MutableList[int]] = ... def __init__( @@ -1259,7 +1259,7 @@ class _fbthrift_SomeService_binary_keyed_map_args(_fbthrift_python_types.Struct) _typing.Union[None, _fbthrift_python_mutable_containers.MutableList[int]]]]: ... -class _fbthrift_SomeService_binary_keyed_map_result(_fbthrift_python_types.Struct): +class _fbthrift_SomeService_binary_keyed_map_result(_fbthrift_python_mutable_types.MutableStruct): success: _typing.Final[_fbthrift_python_mutable_containers.MutableMap[bytes, int]] def __init__(