From 52d53c1c70ebd6086d3b89bc5620d025552b4e7a Mon Sep 17 00:00:00 2001 From: Alper Yoney Date: Sun, 8 Dec 2024 11:23:30 -0800 Subject: [PATCH] Set return type for setters Summary: Set the return type for mutable thrift-python setters Reviewed By: createdbysk Differential Revision: D66937278 fbshipit-source-id: dc129a0009362d51bd964dede0a39f66b130d073 --- .../templates/python/types/types_pyi.mustache | 2 +- .../basic/module/thrift_mutable_types.pyi | 52 ++--- .../basic/module/thrift_mutable_types.pyi | 52 ++--- .../thrift/service/thrift_mutable_types.pyi | 6 +- .../module/thrift_mutable_types.pyi | 218 +++++++++--------- .../module/thrift_mutable_types.pyi | 218 +++++++++--------- .../module/thrift_mutable_types.pyi | 38 +-- .../module/thrift_mutable_types.pyi | 38 +-- .../module/thrift_mutable_types.pyi | 50 ++-- .../module/thrift_mutable_types.pyi | 50 ++-- .../enums/module/thrift_mutable_types.pyi | 16 +- .../enums/module/thrift_mutable_types.pyi | 16 +- .../module/thrift_mutable_types.pyi | 20 +- .../module/thrift_mutable_types.pyi | 20 +- .../module/thrift_mutable_types.pyi | 6 +- .../module/thrift_mutable_types.pyi | 6 +- .../module/thrift_mutable_types.pyi | 16 +- .../module/thrift_mutable_types.pyi | 16 +- .../module/thrift_mutable_types.pyi | 16 +- .../module/thrift_mutable_types.pyi | 16 +- .../module/thrift_mutable_types.pyi | 4 +- .../module/thrift_mutable_types.pyi | 4 +- .../module/thrift_mutable_types.pyi | 14 +- .../module/thrift_mutable_types.pyi | 14 +- .../module/thrift_mutable_types.pyi | 2 +- .../module/thrift_mutable_types.pyi | 2 +- .../module/thrift_mutable_types.pyi | 2 +- .../module/thrift_mutable_types.pyi | 2 +- .../module/thrift_mutable_types.pyi | 152 ++++++------ .../module/thrift_mutable_types.pyi | 152 ++++++------ .../module/thrift_mutable_types.pyi | 4 +- .../types/module/thrift_mutable_types.pyi | 126 +++++----- .../types/module/thrift_mutable_types.pyi | 126 +++++----- 33 files changed, 738 insertions(+), 738 deletions(-) diff --git a/third-party/thrift/src/thrift/compiler/generate/templates/python/types/types_pyi.mustache b/third-party/thrift/src/thrift/compiler/generate/templates/python/types/types_pyi.mustache index d175ecfb462275..09aebfe5ca3488 100644 --- a/third-party/thrift/src/thrift/compiler/generate/templates/python/types/types_pyi.mustache +++ b/third-party/thrift/src/thrift/compiler/generate/templates/python/types/types_pyi.mustache @@ -80,7 +80,7 @@ class {{> structs/unadapted_name}}({{! @property def {{field:py_name}}(self) -> {{> fields/field_type_pyi}}: ... @{{field:py_name}}.setter - def {{field:py_name}}(self, value: {{> fields/field_type_pyi}}{{#field:is_container_type}}{{> types/thrift_container_wrapper}}{{/field:is_container_type}}): ... + def {{field:py_name}}(self, value: {{> fields/field_type_pyi}}{{#field:is_container_type}}{{> types/thrift_container_wrapper}}{{/field:is_container_type}}) -> None: ... {{/struct:fields_ordered_by_id}}{{! }}{{/program:generate_mutable_types}} 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 9ba317a20f171f..e11cfa5208d130 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 @@ -46,55 +46,55 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def MyDataField(self) -> _fbthrift_current_module.MyDataItem: ... @MyDataField.setter - def MyDataField(self, value: _fbthrift_current_module.MyDataItem): ... + def MyDataField(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def oneway(self) -> bool: ... @oneway.setter - def oneway(self, value: bool): ... + def oneway(self, value: bool) -> None: ... @property def readonly(self) -> bool: ... @readonly.setter - def readonly(self, value: bool): ... + def readonly(self, value: bool) -> None: ... @property def idempotent(self) -> bool: ... @idempotent.setter - def idempotent(self, value: bool): ... + def idempotent(self, value: bool) -> None: ... @property def floatSet(self) -> _fbthrift_python_mutable_containers.MutableSet[float]: ... @floatSet.setter - def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def no_hack_codegen_field(self) -> str: ... @no_hack_codegen_field.setter - def no_hack_codegen_field(self, value: str): ... + def no_hack_codegen_field(self, value: str) -> None: ... def __init__( self, *, @@ -137,19 +137,19 @@ class Containers(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def I32List(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @I32List.setter - def I32List(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def I32List(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def StringSet(self) -> _fbthrift_python_mutable_containers.MutableSet[str]: ... @StringSet.setter - def StringSet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def StringSet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def StringToI64Map(self) -> _fbthrift_python_mutable_containers.MutableMap[str, int]: ... @StringToI64Map.setter - def StringToI64Map(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def StringToI64Map(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -199,25 +199,25 @@ class MyUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_ @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myDataItem(self) -> _fbthrift_current_module.MyDataItem: ... @myDataItem.setter - def myDataItem(self, value: _fbthrift_current_module.MyDataItem): ... + def myDataItem(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def floatSet(self) -> _fbthrift_python_mutable_containers.MutableSet[float]: ... @floatSet.setter - def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... def __init__( self, *, @@ -254,25 +254,25 @@ class MyException(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fb @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myUnion(self) -> _fbthrift_current_module.MyUnion: ... @myUnion.setter - def myUnion(self, value: _fbthrift_current_module.MyUnion): ... + def myUnion(self, value: _fbthrift_current_module.MyUnion) -> None: ... def __init__( self, *, @@ -298,25 +298,25 @@ class MyExceptionWithMessage(_fbthrift_python_mutable_exceptions.MutableGenerate @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myUnion(self) -> _fbthrift_current_module.MyUnion: ... @myUnion.setter - def myUnion(self, value: _fbthrift_current_module.MyUnion): ... + def myUnion(self, value: _fbthrift_current_module.MyUnion) -> None: ... def __init__( self, *, @@ -342,7 +342,7 @@ class ReservedKeyword(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def reserved_field(self) -> int: ... @reserved_field.setter - def reserved_field(self, value: int): ... + def reserved_field(self, value: int) -> None: ... def __init__( self, *, @@ -369,7 +369,7 @@ class UnionToBeRenamed(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_co @property def reserved_field(self) -> int: ... @reserved_field.setter - def reserved_field(self, value: int): ... + def reserved_field(self, value: int) -> None: ... def __init__( self, *, 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 ae3c9bcbcadfb4..61d93a6e493b1a 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 @@ -45,55 +45,55 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def MyDataField(self) -> _fbthrift_current_module.MyDataItem: ... @MyDataField.setter - def MyDataField(self, value: _fbthrift_current_module.MyDataItem): ... + def MyDataField(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def oneway(self) -> bool: ... @oneway.setter - def oneway(self, value: bool): ... + def oneway(self, value: bool) -> None: ... @property def readonly(self) -> bool: ... @readonly.setter - def readonly(self, value: bool): ... + def readonly(self, value: bool) -> None: ... @property def idempotent(self) -> bool: ... @idempotent.setter - def idempotent(self, value: bool): ... + def idempotent(self, value: bool) -> None: ... @property def floatSet(self) -> _fbthrift_python_mutable_containers.MutableSet[float]: ... @floatSet.setter - def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def no_hack_codegen_field(self) -> str: ... @no_hack_codegen_field.setter - def no_hack_codegen_field(self, value: str): ... + def no_hack_codegen_field(self, value: str) -> None: ... def __init__( self, *, @@ -136,19 +136,19 @@ class Containers(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def I32List(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @I32List.setter - def I32List(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def I32List(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def StringSet(self) -> _fbthrift_python_mutable_containers.MutableSet[str]: ... @StringSet.setter - def StringSet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def StringSet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def StringToI64Map(self) -> _fbthrift_python_mutable_containers.MutableMap[str, int]: ... @StringToI64Map.setter - def StringToI64Map(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def StringToI64Map(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -198,25 +198,25 @@ class MyUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_ @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myDataItem(self) -> _fbthrift_current_module.MyDataItem: ... @myDataItem.setter - def myDataItem(self, value: _fbthrift_current_module.MyDataItem): ... + def myDataItem(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def floatSet(self) -> _fbthrift_python_mutable_containers.MutableSet[float]: ... @floatSet.setter - def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def floatSet(self, value: _fbthrift_python_mutable_containers.MutableSet[float] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... def __init__( self, *, @@ -253,25 +253,25 @@ class MyException(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fb @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myUnion(self) -> _fbthrift_current_module.MyUnion: ... @myUnion.setter - def myUnion(self, value: _fbthrift_current_module.MyUnion): ... + def myUnion(self, value: _fbthrift_current_module.MyUnion) -> None: ... def __init__( self, *, @@ -297,25 +297,25 @@ class MyExceptionWithMessage(_fbthrift_python_mutable_exceptions.MutableGenerate @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myUnion(self) -> _fbthrift_current_module.MyUnion: ... @myUnion.setter - def myUnion(self, value: _fbthrift_current_module.MyUnion): ... + def myUnion(self, value: _fbthrift_current_module.MyUnion) -> None: ... def __init__( self, *, @@ -341,7 +341,7 @@ class ReservedKeyword(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def reserved_field(self) -> int: ... @reserved_field.setter - def reserved_field(self, value: int): ... + def reserved_field(self, value: int) -> None: ... def __init__( self, *, @@ -368,7 +368,7 @@ class UnionToBeRenamed(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_co @property def reserved_field(self) -> int: ... @reserved_field.setter - def reserved_field(self, value: int): ... + def reserved_field(self, value: int) -> None: ... def __init__( self, *, 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 8b55aa1a139a17..a3e3e0dec3e9a9 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 @@ -41,7 +41,7 @@ class EchoRequest(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compat @property def text(self) -> str: ... @text.setter - def text(self, value: str): ... + def text(self, value: str) -> None: ... def __init__( self, *, @@ -68,7 +68,7 @@ class EchoResponse(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compa @property def text(self) -> str: ... @text.setter - def text(self, value: str): ... + def text(self, value: str) -> None: ... def __init__( self, *, @@ -95,7 +95,7 @@ class WhisperException(_fbthrift_python_mutable_exceptions.MutableGeneratedError @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index 8724e9ade6afd0..8b4c0d93470b10 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -45,25 +45,25 @@ class MyStructFloatFieldThrowExp(_fbthrift_python_mutable_types.MutableStruct, _ @property def myLongField(self) -> int: ... @myLongField.setter - def myLongField(self, value: int): ... + def myLongField(self, value: int) -> None: ... @property def MyByteField(self) -> int: ... @MyByteField.setter - def MyByteField(self, value: int): ... + def MyByteField(self, value: int) -> None: ... @property def myStringField(self) -> str: ... @myStringField.setter - def myStringField(self, value: str): ... + def myStringField(self, value: str) -> None: ... @property def myFloatField(self) -> float: ... @myFloatField.setter - def myFloatField(self, value: float): ... + def myFloatField(self, value: float) -> None: ... def __init__( self, *, @@ -96,13 +96,13 @@ class MyStructMapFloatThrowExp(_fbthrift_python_mutable_types.MutableStruct, _fb @property def myLongField(self) -> int: ... @myLongField.setter - def myLongField(self, value: int): ... + def myLongField(self, value: int) -> None: ... @property def mapListOfFloats(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]]: ... @mapListOfFloats.setter - def mapListOfFloats(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapListOfFloats(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -131,169 +131,169 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def MyDataField(self) -> _fbthrift_current_module.MyDataItem: ... @MyDataField.setter - def MyDataField(self, value: _fbthrift_current_module.MyDataItem): ... + def MyDataField(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def MyBoolField(self) -> bool: ... @MyBoolField.setter - def MyBoolField(self, value: bool): ... + def MyBoolField(self, value: bool) -> None: ... @property def MyByteField(self) -> int: ... @MyByteField.setter - def MyByteField(self, value: int): ... + def MyByteField(self, value: int) -> None: ... @property def MyShortField(self) -> int: ... @MyShortField.setter - def MyShortField(self, value: int): ... + def MyShortField(self, value: int) -> None: ... @property def MyLongField(self) -> int: ... @MyLongField.setter - def MyLongField(self, value: int): ... + def MyLongField(self, value: int) -> None: ... @property def MyDoubleField(self) -> float: ... @MyDoubleField.setter - def MyDoubleField(self, value: float): ... + def MyDoubleField(self, value: float) -> None: ... @property def lDouble(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @lDouble.setter - def lDouble(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lDouble(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lShort(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lShort.setter - def lShort(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lShort(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lInteger(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lInteger.setter - def lInteger(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lInteger(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lLong(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lLong.setter - def lLong(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lLong(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lString(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @lString.setter - def lString(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lString(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lBool(self) -> _fbthrift_python_mutable_containers.MutableList[bool]: ... @lBool.setter - def lBool(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lBool(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lByte(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lByte.setter - def lByte(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lByte(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mShortString(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @mShortString.setter - def mShortString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mShortString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mIntegerString(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @mIntegerString.setter - def mIntegerString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mIntegerString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mStringMyStruct(self) -> _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_current_module.MyStruct]: ... @mStringMyStruct.setter - def mStringMyStruct(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mStringMyStruct(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mStringBool(self) -> _fbthrift_python_mutable_containers.MutableMap[str, bool]: ... @mStringBool.setter - def mStringBool(self, value: _fbthrift_python_mutable_containers.MutableMap[str, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mStringBool(self, value: _fbthrift_python_mutable_containers.MutableMap[str, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mIntegerInteger(self) -> _fbthrift_python_mutable_containers.MutableMap[int, int]: ... @mIntegerInteger.setter - def mIntegerInteger(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mIntegerInteger(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mIntegerBool(self) -> _fbthrift_python_mutable_containers.MutableMap[int, bool]: ... @mIntegerBool.setter - def mIntegerBool(self, value: _fbthrift_python_mutable_containers.MutableMap[int, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mIntegerBool(self, value: _fbthrift_python_mutable_containers.MutableMap[int, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def sShort(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @sShort.setter - def sShort(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sShort(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sMyStruct(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyStruct]: ... @sMyStruct.setter - def sMyStruct(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sMyStruct(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sLong(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @sLong.setter - def sLong(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sLong(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sString(self) -> _fbthrift_python_mutable_containers.MutableSet[str]: ... @sString.setter - def sString(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sString(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sByte(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @sByte.setter - def sByte(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sByte(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def mListList(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int]]: ... @mListList.setter - def mListList(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mListList(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -374,13 +374,13 @@ class SimpleStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compa @property def age(self) -> int: ... @age.setter - def age(self, value: int): ... + def age(self, value: int) -> None: ... @property def name(self) -> str: ... @name.setter - def name(self, value: str): ... + def name(self, value: str) -> None: ... def __init__( self, *, @@ -409,133 +409,133 @@ class defaultStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def myLongDFset(self) -> int: ... @myLongDFset.setter - def myLongDFset(self, value: int): ... + def myLongDFset(self, value: int) -> None: ... @property def myLongDF(self) -> int: ... @myLongDF.setter - def myLongDF(self, value: int): ... + def myLongDF(self, value: int) -> None: ... @property def portDFset(self) -> int: ... @portDFset.setter - def portDFset(self, value: int): ... + def portDFset(self, value: int) -> None: ... @property def portNum(self) -> int: ... @portNum.setter - def portNum(self, value: int): ... + def portNum(self, value: int) -> None: ... @property def myBinaryDFset(self) -> bytes: ... @myBinaryDFset.setter - def myBinaryDFset(self, value: bytes): ... + def myBinaryDFset(self, value: bytes) -> None: ... @property def myBinary(self) -> bytes: ... @myBinary.setter - def myBinary(self, value: bytes): ... + def myBinary(self, value: bytes) -> None: ... @property def myByteDFSet(self) -> int: ... @myByteDFSet.setter - def myByteDFSet(self, value: int): ... + def myByteDFSet(self, value: int) -> None: ... @property def myByte(self) -> int: ... @myByte.setter - def myByte(self, value: int): ... + def myByte(self, value: int) -> None: ... @property def myDoubleDFset(self) -> float: ... @myDoubleDFset.setter - def myDoubleDFset(self, value: float): ... + def myDoubleDFset(self, value: float) -> None: ... @property def myDoubleDFZero(self) -> float: ... @myDoubleDFZero.setter - def myDoubleDFZero(self, value: float): ... + def myDoubleDFZero(self, value: float) -> None: ... @property def myDouble(self) -> float: ... @myDouble.setter - def myDouble(self, value: float): ... + def myDouble(self, value: float) -> None: ... @property def field3(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @field3.setter - def field3(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def field3(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def myList(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]: ... @myList.setter - def myList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def myList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mySet(self) -> _fbthrift_python_mutable_containers.MutableSet[str]: ... @mySet.setter - def mySet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def mySet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def simpleStruct(self) -> _fbthrift_current_module.SimpleStruct: ... @simpleStruct.setter - def simpleStruct(self, value: _fbthrift_current_module.SimpleStruct): ... + def simpleStruct(self, value: _fbthrift_current_module.SimpleStruct) -> None: ... @property def listStructDFset(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]: ... @listStructDFset.setter - def listStructDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listStructDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myUnion(self) -> _fbthrift_current_module.MyUnion: ... @myUnion.setter - def myUnion(self, value: _fbthrift_current_module.MyUnion): ... + def myUnion(self, value: _fbthrift_current_module.MyUnion) -> None: ... @property def listUnionDFset(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyUnion]: ... @listUnionDFset.setter - def listUnionDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyUnion] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listUnionDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyUnion] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mapNestlistStructDfSet(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]]: ... @mapNestlistStructDfSet.setter - def mapNestlistStructDfSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapNestlistStructDfSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapJavaTypeDFset(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @mapJavaTypeDFset.setter - def mapJavaTypeDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapJavaTypeDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def emptyMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, int]: ... @emptyMap.setter - def emptyMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def emptyMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def enumMapDFset(self) -> _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.MyEnum]]: ... @enumMapDFset.setter - def enumMapDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.MyEnum]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def enumMapDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.MyEnum]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -604,55 +604,55 @@ class MyStructTypeDef(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def myLongField(self) -> int: ... @myLongField.setter - def myLongField(self, value: int): ... + def myLongField(self, value: int) -> None: ... @property def myLongTypeDef(self) -> int: ... @myLongTypeDef.setter - def myLongTypeDef(self, value: int): ... + def myLongTypeDef(self, value: int) -> None: ... @property def myStringField(self) -> str: ... @myStringField.setter - def myStringField(self, value: str): ... + def myStringField(self, value: str) -> None: ... @property def myStringTypedef(self) -> str: ... @myStringTypedef.setter - def myStringTypedef(self, value: str): ... + def myStringTypedef(self, value: str) -> None: ... @property def myMapField(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @myMapField.setter - def myMapField(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def myMapField(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def myMapTypedef(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @myMapTypedef.setter - def myMapTypedef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def myMapTypedef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def myListField(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @myListField.setter - def myListField(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def myListField(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myListTypedef(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @myListTypedef.setter - def myListTypedef(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def myListTypedef(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myMapListOfTypeDef(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]]: ... @myMapListOfTypeDef.setter - def myMapListOfTypeDef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def myMapListOfTypeDef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -714,37 +714,37 @@ class MyUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_ @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myDataItem(self) -> _fbthrift_current_module.MyDataItem: ... @myDataItem.setter - def myDataItem(self, value: _fbthrift_current_module.MyDataItem): ... + def myDataItem(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def complexNestedStruct(self) -> _fbthrift_current_module.ComplexNestedStruct: ... @complexNestedStruct.setter - def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct): ... + def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct) -> None: ... @property def longValue(self) -> int: ... @longValue.setter - def longValue(self, value: int): ... + def longValue(self, value: int) -> None: ... @property def intValue(self) -> int: ... @intValue.setter - def intValue(self, value: int): ... + def intValue(self, value: int) -> None: ... def __init__( self, *, @@ -785,25 +785,25 @@ class MyUnionFloatFieldThrowExp(_fbthrift_python_mutable_types.MutableUnion, _fb @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def setFloat(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]: ... @setFloat.setter - def setFloat(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def setFloat(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myDataItem(self) -> _fbthrift_current_module.MyDataItem: ... @myDataItem.setter - def myDataItem(self, value: _fbthrift_current_module.MyDataItem): ... + def myDataItem(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def complexNestedStruct(self) -> _fbthrift_current_module.ComplexNestedStruct: ... @complexNestedStruct.setter - def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct): ... + def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct) -> None: ... def __init__( self, *, @@ -840,109 +840,109 @@ class ComplexNestedStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrif @property def setOfSetOfInt(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]: ... @setOfSetOfInt.setter - def setOfSetOfInt(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def setOfSetOfInt(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def listofListOfListOfListOfEnum(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]]]]: ... @listofListOfListOfListOfEnum.setter - def listofListOfListOfListOfEnum(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]]]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listofListOfListOfListOfEnum(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]]]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def listOfListOfMyStruct(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]: ... @listOfListOfMyStruct.setter - def listOfListOfMyStruct(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listOfListOfMyStruct(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def setOfListOfListOfLong(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]]: ... @setOfListOfListOfLong.setter - def setOfListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def setOfListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def setOfSetOfsetOfLong(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]]: ... @setOfSetOfsetOfLong.setter - def setOfSetOfsetOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def setOfSetOfsetOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def mapStructListOfListOfLong(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]]: ... @mapStructListOfListOfLong.setter - def mapStructListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapStructListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mKeyStructValInt(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyStruct, int]: ... @mKeyStructValInt.setter - def mKeyStructValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyStruct, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mKeyStructValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyStruct, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def listOfMapKeyIntValInt(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]]: ... @listOfMapKeyIntValInt.setter - def listOfMapKeyIntValInt(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listOfMapKeyIntValInt(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def listOfMapKeyStrValList(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]]: ... @listOfMapKeyStrValList.setter - def listOfMapKeyStrValList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listOfMapKeyStrValList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mapKeySetValLong(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[int], int]: ... @mapKeySetValLong.setter - def mapKeySetValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[int], int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeySetValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[int], int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyListValLong(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[str], int]: ... @mapKeyListValLong.setter - def mapKeyListValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[str], int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyListValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[str], int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyMapValMap(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @mapKeyMapValMap.setter - def mapKeyMapValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyMapValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeySetValMap(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[int]], _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[str]], str]]: ... @mapKeySetValMap.setter - def mapKeySetValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[int]], _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[str]], str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeySetValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[int]], _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[str]], str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def NestedMaps(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], str], _fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @NestedMaps.setter - def NestedMaps(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def NestedMaps(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyIntValList(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]: ... @mapKeyIntValList.setter - def mapKeyIntValList(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyIntValList(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyIntValSet(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableSet[bool]]: ... @mapKeyIntValSet.setter - def mapKeyIntValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableSet[bool]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyIntValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableSet[bool]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeySetValInt(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[bool], _fbthrift_current_module.MyEnum]: ... @mapKeySetValInt.setter - def mapKeySetValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[bool], _fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeySetValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[bool], _fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyListValSet(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableMap[float, str]]]: ... @mapKeyListValSet.setter - def mapKeyListValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableMap[float, str]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyListValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableMap[float, str]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -1003,25 +1003,25 @@ class TypeRemapped(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compa @property def lsMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @lsMap.setter - def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def ioMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableMap[int, int]]: ... @ioMap.setter - def ioMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def ioMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def BigInteger(self) -> int: ... @BigInteger.setter - def BigInteger(self, value: int): ... + def BigInteger(self, value: int) -> None: ... @property def binaryTestBuffer(self) -> bytes: ... @binaryTestBuffer.setter - def binaryTestBuffer(self, value: bytes): ... + def binaryTestBuffer(self, value: bytes) -> None: ... def __init__( self, *, @@ -1070,13 +1070,13 @@ class reqXcep(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthri @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... @property def errorCode(self) -> int: ... @errorCode.setter - def errorCode(self, value: int): ... + def errorCode(self, value: int) -> None: ... def __init__( self, *, @@ -1100,13 +1100,13 @@ class optXcep(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthri @property def message(self) -> _typing.Optional[str]: ... @message.setter - def message(self, value: _typing.Optional[str]): ... + def message(self, value: _typing.Optional[str]) -> None: ... @property def errorCode(self) -> _typing.Optional[int]: ... @errorCode.setter - def errorCode(self, value: _typing.Optional[int]): ... + def errorCode(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -1130,37 +1130,37 @@ class complexException(_fbthrift_python_mutable_exceptions.MutableGeneratedError @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... @property def listStrings(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @listStrings.setter - def listStrings(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listStrings(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def errorEnum(self) -> _fbthrift_current_module.MyEnum: ... @errorEnum.setter - def errorEnum(self, value: _fbthrift_current_module.MyEnum): ... + def errorEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def unionError(self) -> _typing.Optional[_fbthrift_current_module.MyUnion]: ... @unionError.setter - def unionError(self, value: _typing.Optional[_fbthrift_current_module.MyUnion]): ... + def unionError(self, value: _typing.Optional[_fbthrift_current_module.MyUnion]) -> None: ... @property def structError(self) -> _fbthrift_current_module.MyStruct: ... @structError.setter - def structError(self, value: _fbthrift_current_module.MyStruct): ... + def structError(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def lsMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @lsMap.setter - def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index b23921f43ddd91..a0a3deeb5ced7b 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-struct/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -44,25 +44,25 @@ class MyStructFloatFieldThrowExp(_fbthrift_python_mutable_types.MutableStruct, _ @property def myLongField(self) -> int: ... @myLongField.setter - def myLongField(self, value: int): ... + def myLongField(self, value: int) -> None: ... @property def MyByteField(self) -> int: ... @MyByteField.setter - def MyByteField(self, value: int): ... + def MyByteField(self, value: int) -> None: ... @property def myStringField(self) -> str: ... @myStringField.setter - def myStringField(self, value: str): ... + def myStringField(self, value: str) -> None: ... @property def myFloatField(self) -> float: ... @myFloatField.setter - def myFloatField(self, value: float): ... + def myFloatField(self, value: float) -> None: ... def __init__( self, *, @@ -95,13 +95,13 @@ class MyStructMapFloatThrowExp(_fbthrift_python_mutable_types.MutableStruct, _fb @property def myLongField(self) -> int: ... @myLongField.setter - def myLongField(self, value: int): ... + def myLongField(self, value: int) -> None: ... @property def mapListOfFloats(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]]: ... @mapListOfFloats.setter - def mapListOfFloats(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapListOfFloats(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -130,169 +130,169 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def MyDataField(self) -> _fbthrift_current_module.MyDataItem: ... @MyDataField.setter - def MyDataField(self, value: _fbthrift_current_module.MyDataItem): ... + def MyDataField(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def MyBoolField(self) -> bool: ... @MyBoolField.setter - def MyBoolField(self, value: bool): ... + def MyBoolField(self, value: bool) -> None: ... @property def MyByteField(self) -> int: ... @MyByteField.setter - def MyByteField(self, value: int): ... + def MyByteField(self, value: int) -> None: ... @property def MyShortField(self) -> int: ... @MyShortField.setter - def MyShortField(self, value: int): ... + def MyShortField(self, value: int) -> None: ... @property def MyLongField(self) -> int: ... @MyLongField.setter - def MyLongField(self, value: int): ... + def MyLongField(self, value: int) -> None: ... @property def MyDoubleField(self) -> float: ... @MyDoubleField.setter - def MyDoubleField(self, value: float): ... + def MyDoubleField(self, value: float) -> None: ... @property def lDouble(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @lDouble.setter - def lDouble(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lDouble(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lShort(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lShort.setter - def lShort(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lShort(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lInteger(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lInteger.setter - def lInteger(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lInteger(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lLong(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lLong.setter - def lLong(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lLong(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lString(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @lString.setter - def lString(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lString(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lBool(self) -> _fbthrift_python_mutable_containers.MutableList[bool]: ... @lBool.setter - def lBool(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lBool(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def lByte(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @lByte.setter - def lByte(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def lByte(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mShortString(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @mShortString.setter - def mShortString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mShortString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mIntegerString(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @mIntegerString.setter - def mIntegerString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mIntegerString(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mStringMyStruct(self) -> _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_current_module.MyStruct]: ... @mStringMyStruct.setter - def mStringMyStruct(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mStringMyStruct(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mStringBool(self) -> _fbthrift_python_mutable_containers.MutableMap[str, bool]: ... @mStringBool.setter - def mStringBool(self, value: _fbthrift_python_mutable_containers.MutableMap[str, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mStringBool(self, value: _fbthrift_python_mutable_containers.MutableMap[str, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mIntegerInteger(self) -> _fbthrift_python_mutable_containers.MutableMap[int, int]: ... @mIntegerInteger.setter - def mIntegerInteger(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mIntegerInteger(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mIntegerBool(self) -> _fbthrift_python_mutable_containers.MutableMap[int, bool]: ... @mIntegerBool.setter - def mIntegerBool(self, value: _fbthrift_python_mutable_containers.MutableMap[int, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mIntegerBool(self, value: _fbthrift_python_mutable_containers.MutableMap[int, bool] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def sShort(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @sShort.setter - def sShort(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sShort(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sMyStruct(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyStruct]: ... @sMyStruct.setter - def sMyStruct(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sMyStruct(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyStruct] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sLong(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @sLong.setter - def sLong(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sLong(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sString(self) -> _fbthrift_python_mutable_containers.MutableSet[str]: ... @sString.setter - def sString(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sString(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def sByte(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @sByte.setter - def sByte(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def sByte(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def mListList(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int]]: ... @mListList.setter - def mListList(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mListList(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -373,13 +373,13 @@ class SimpleStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compa @property def age(self) -> int: ... @age.setter - def age(self, value: int): ... + def age(self, value: int) -> None: ... @property def name(self) -> str: ... @name.setter - def name(self, value: str): ... + def name(self, value: str) -> None: ... def __init__( self, *, @@ -408,133 +408,133 @@ class defaultStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def myLongDFset(self) -> int: ... @myLongDFset.setter - def myLongDFset(self, value: int): ... + def myLongDFset(self, value: int) -> None: ... @property def myLongDF(self) -> int: ... @myLongDF.setter - def myLongDF(self, value: int): ... + def myLongDF(self, value: int) -> None: ... @property def portDFset(self) -> int: ... @portDFset.setter - def portDFset(self, value: int): ... + def portDFset(self, value: int) -> None: ... @property def portNum(self) -> int: ... @portNum.setter - def portNum(self, value: int): ... + def portNum(self, value: int) -> None: ... @property def myBinaryDFset(self) -> bytes: ... @myBinaryDFset.setter - def myBinaryDFset(self, value: bytes): ... + def myBinaryDFset(self, value: bytes) -> None: ... @property def myBinary(self) -> bytes: ... @myBinary.setter - def myBinary(self, value: bytes): ... + def myBinary(self, value: bytes) -> None: ... @property def myByteDFSet(self) -> int: ... @myByteDFSet.setter - def myByteDFSet(self, value: int): ... + def myByteDFSet(self, value: int) -> None: ... @property def myByte(self) -> int: ... @myByte.setter - def myByte(self, value: int): ... + def myByte(self, value: int) -> None: ... @property def myDoubleDFset(self) -> float: ... @myDoubleDFset.setter - def myDoubleDFset(self, value: float): ... + def myDoubleDFset(self, value: float) -> None: ... @property def myDoubleDFZero(self) -> float: ... @myDoubleDFZero.setter - def myDoubleDFZero(self, value: float): ... + def myDoubleDFZero(self, value: float) -> None: ... @property def myDouble(self) -> float: ... @myDouble.setter - def myDouble(self, value: float): ... + def myDouble(self, value: float) -> None: ... @property def field3(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @field3.setter - def field3(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def field3(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def myList(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]: ... @myList.setter - def myList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def myList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mySet(self) -> _fbthrift_python_mutable_containers.MutableSet[str]: ... @mySet.setter - def mySet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def mySet(self, value: _fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def simpleStruct(self) -> _fbthrift_current_module.SimpleStruct: ... @simpleStruct.setter - def simpleStruct(self, value: _fbthrift_current_module.SimpleStruct): ... + def simpleStruct(self, value: _fbthrift_current_module.SimpleStruct) -> None: ... @property def listStructDFset(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]: ... @listStructDFset.setter - def listStructDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listStructDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myUnion(self) -> _fbthrift_current_module.MyUnion: ... @myUnion.setter - def myUnion(self, value: _fbthrift_current_module.MyUnion): ... + def myUnion(self, value: _fbthrift_current_module.MyUnion) -> None: ... @property def listUnionDFset(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyUnion]: ... @listUnionDFset.setter - def listUnionDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyUnion] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listUnionDFset(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyUnion] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mapNestlistStructDfSet(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]]: ... @mapNestlistStructDfSet.setter - def mapNestlistStructDfSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapNestlistStructDfSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.SimpleStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapJavaTypeDFset(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @mapJavaTypeDFset.setter - def mapJavaTypeDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapJavaTypeDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def emptyMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, int]: ... @emptyMap.setter - def emptyMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def emptyMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def enumMapDFset(self) -> _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.MyEnum]]: ... @enumMapDFset.setter - def enumMapDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.MyEnum]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def enumMapDFset(self, value: _fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.MyEnum]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -603,55 +603,55 @@ class MyStructTypeDef(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def myLongField(self) -> int: ... @myLongField.setter - def myLongField(self, value: int): ... + def myLongField(self, value: int) -> None: ... @property def myLongTypeDef(self) -> int: ... @myLongTypeDef.setter - def myLongTypeDef(self, value: int): ... + def myLongTypeDef(self, value: int) -> None: ... @property def myStringField(self) -> str: ... @myStringField.setter - def myStringField(self, value: str): ... + def myStringField(self, value: str) -> None: ... @property def myStringTypedef(self) -> str: ... @myStringTypedef.setter - def myStringTypedef(self, value: str): ... + def myStringTypedef(self, value: str) -> None: ... @property def myMapField(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @myMapField.setter - def myMapField(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def myMapField(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def myMapTypedef(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @myMapTypedef.setter - def myMapTypedef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def myMapTypedef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def myListField(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @myListField.setter - def myListField(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def myListField(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myListTypedef(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @myListTypedef.setter - def myListTypedef(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def myListTypedef(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myMapListOfTypeDef(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]]: ... @myMapListOfTypeDef.setter - def myMapListOfTypeDef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def myMapListOfTypeDef(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -713,37 +713,37 @@ class MyUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_ @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.MyStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.MyStruct): ... + def myStruct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def myDataItem(self) -> _fbthrift_current_module.MyDataItem: ... @myDataItem.setter - def myDataItem(self, value: _fbthrift_current_module.MyDataItem): ... + def myDataItem(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def complexNestedStruct(self) -> _fbthrift_current_module.ComplexNestedStruct: ... @complexNestedStruct.setter - def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct): ... + def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct) -> None: ... @property def longValue(self) -> int: ... @longValue.setter - def longValue(self, value: int): ... + def longValue(self, value: int) -> None: ... @property def intValue(self) -> int: ... @intValue.setter - def intValue(self, value: int): ... + def intValue(self, value: int) -> None: ... def __init__( self, *, @@ -784,25 +784,25 @@ class MyUnionFloatFieldThrowExp(_fbthrift_python_mutable_types.MutableUnion, _fb @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def setFloat(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]: ... @setFloat.setter - def setFloat(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def setFloat(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def myDataItem(self) -> _fbthrift_current_module.MyDataItem: ... @myDataItem.setter - def myDataItem(self, value: _fbthrift_current_module.MyDataItem): ... + def myDataItem(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def complexNestedStruct(self) -> _fbthrift_current_module.ComplexNestedStruct: ... @complexNestedStruct.setter - def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct): ... + def complexNestedStruct(self, value: _fbthrift_current_module.ComplexNestedStruct) -> None: ... def __init__( self, *, @@ -839,109 +839,109 @@ class ComplexNestedStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrif @property def setOfSetOfInt(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]: ... @setOfSetOfInt.setter - def setOfSetOfInt(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def setOfSetOfInt(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def listofListOfListOfListOfEnum(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]]]]: ... @listofListOfListOfListOfEnum.setter - def listofListOfListOfListOfEnum(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]]]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listofListOfListOfListOfEnum(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyEnum]]]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def listOfListOfMyStruct(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]: ... @listOfListOfMyStruct.setter - def listOfListOfMyStruct(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listOfListOfMyStruct(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def setOfListOfListOfLong(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]]: ... @setOfListOfListOfLong.setter - def setOfListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def setOfListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def setOfSetOfsetOfLong(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]]: ... @setOfSetOfsetOfLong.setter - def setOfSetOfsetOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def setOfSetOfsetOfLong(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableSet[int]]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def mapStructListOfListOfLong(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]]: ... @mapStructListOfListOfLong.setter - def mapStructListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapStructListOfListOfLong(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mKeyStructValInt(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyStruct, int]: ... @mKeyStructValInt.setter - def mKeyStructValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyStruct, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mKeyStructValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyStruct, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def listOfMapKeyIntValInt(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]]: ... @listOfMapKeyIntValInt.setter - def listOfMapKeyIntValInt(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listOfMapKeyIntValInt(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def listOfMapKeyStrValList(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]]: ... @listOfMapKeyStrValList.setter - def listOfMapKeyStrValList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listOfMapKeyStrValList(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[str, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def mapKeySetValLong(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[int], int]: ... @mapKeySetValLong.setter - def mapKeySetValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[int], int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeySetValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[int], int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyListValLong(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[str], int]: ... @mapKeyListValLong.setter - def mapKeyListValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[str], int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyListValLong(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[str], int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyMapValMap(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @mapKeyMapValMap.setter - def mapKeyMapValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyMapValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeySetValMap(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[int]], _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[str]], str]]: ... @mapKeySetValMap.setter - def mapKeySetValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[int]], _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[str]], str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeySetValMap(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableList[int]], _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[str]], str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def NestedMaps(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], str], _fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @NestedMaps.setter - def NestedMaps(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def NestedMaps(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableMap[int, str], str], _fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyIntValList(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]]: ... @mapKeyIntValList.setter - def mapKeyIntValList(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyIntValList(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.MyStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyIntValSet(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableSet[bool]]: ... @mapKeyIntValSet.setter - def mapKeyIntValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableSet[bool]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyIntValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableSet[bool]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeySetValInt(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[bool], _fbthrift_current_module.MyEnum]: ... @mapKeySetValInt.setter - def mapKeySetValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[bool], _fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeySetValInt(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableSet[bool], _fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def mapKeyListValSet(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableMap[float, str]]]: ... @mapKeyListValSet.setter - def mapKeyListValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableMap[float, str]]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def mapKeyListValSet(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[_fbthrift_python_mutable_containers.MutableMap[float, str]]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -1002,25 +1002,25 @@ class TypeRemapped(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compa @property def lsMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @lsMap.setter - def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def ioMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableMap[int, int]]: ... @ioMap.setter - def ioMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def ioMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def BigInteger(self) -> int: ... @BigInteger.setter - def BigInteger(self, value: int): ... + def BigInteger(self, value: int) -> None: ... @property def binaryTestBuffer(self) -> bytes: ... @binaryTestBuffer.setter - def binaryTestBuffer(self, value: bytes): ... + def binaryTestBuffer(self, value: bytes) -> None: ... def __init__( self, *, @@ -1069,13 +1069,13 @@ class reqXcep(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthri @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... @property def errorCode(self) -> int: ... @errorCode.setter - def errorCode(self, value: int): ... + def errorCode(self, value: int) -> None: ... def __init__( self, *, @@ -1099,13 +1099,13 @@ class optXcep(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthri @property def message(self) -> _typing.Optional[str]: ... @message.setter - def message(self, value: _typing.Optional[str]): ... + def message(self, value: _typing.Optional[str]) -> None: ... @property def errorCode(self) -> _typing.Optional[int]: ... @errorCode.setter - def errorCode(self, value: _typing.Optional[int]): ... + def errorCode(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -1129,37 +1129,37 @@ class complexException(_fbthrift_python_mutable_exceptions.MutableGeneratedError @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... @property def listStrings(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @listStrings.setter - def listStrings(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def listStrings(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def errorEnum(self) -> _fbthrift_current_module.MyEnum: ... @errorEnum.setter - def errorEnum(self, value: _fbthrift_current_module.MyEnum): ... + def errorEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def unionError(self) -> _typing.Optional[_fbthrift_current_module.MyUnion]: ... @unionError.setter - def unionError(self, value: _typing.Optional[_fbthrift_current_module.MyUnion]): ... + def unionError(self, value: _typing.Optional[_fbthrift_current_module.MyUnion]) -> None: ... @property def structError(self) -> _fbthrift_current_module.MyStruct: ... @structError.setter - def structError(self, value: _fbthrift_current_module.MyStruct): ... + def structError(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def lsMap(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @lsMap.setter - def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def lsMap(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index bddb297611f7b2..8ec2e2e4527171 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -44,37 +44,37 @@ class ComplexUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compat @property def intValue(self) -> int: ... @intValue.setter - def intValue(self, value: int): ... + def intValue(self, value: int) -> None: ... @property def intListValue(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @intListValue.setter - def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringListValue(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @stringListValue.setter - def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringValue(self) -> str: ... @stringValue.setter - def stringValue(self, value: str): ... + def stringValue(self, value: str) -> None: ... @property def typedefValue(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @typedefValue.setter - def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def stringRef(self) -> str: ... @stringRef.setter - def stringRef(self, value: str): ... + def stringRef(self, value: str) -> None: ... def __init__( self, *, @@ -115,13 +115,13 @@ class ListUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatibl @property def intListValue(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @intListValue.setter - def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringListValue(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @stringListValue.setter - def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -154,13 +154,13 @@ class DataUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatibl @property def binaryData(self) -> bytes: ... @binaryData.setter - def binaryData(self, value: bytes): ... + def binaryData(self, value: bytes) -> None: ... @property def stringData(self) -> str: ... @stringData.setter - def stringData(self, value: str): ... + def stringData(self, value: str) -> None: ... def __init__( self, *, @@ -193,19 +193,19 @@ class Val(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def strVal(self) -> str: ... @strVal.setter - def strVal(self, value: str): ... + def strVal(self, value: str) -> None: ... @property def intVal(self) -> int: ... @intVal.setter - def intVal(self, value: int): ... + def intVal(self, value: int) -> None: ... @property def typedefValue(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @typedefValue.setter - def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -236,13 +236,13 @@ class ValUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible @property def v1(self) -> _fbthrift_current_module.Val: ... @v1.setter - def v1(self, value: _fbthrift_current_module.Val): ... + def v1(self, value: _fbthrift_current_module.Val) -> None: ... @property def v2(self) -> _fbthrift_current_module.Val: ... @v2.setter - def v2(self, value: _fbthrift_current_module.Val): ... + def v2(self, value: _fbthrift_current_module.Val) -> None: ... def __init__( self, *, @@ -275,13 +275,13 @@ class VirtualComplexUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift @property def thingOne(self) -> str: ... @thingOne.setter - def thingOne(self, value: str): ... + def thingOne(self, value: str) -> None: ... @property def thingTwo(self) -> str: ... @thingTwo.setter - def thingTwo(self, value: str): ... + def thingTwo(self, value: str) -> None: ... def __init__( self, *, @@ -314,7 +314,7 @@ class NonCopyableStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_ @property def num(self) -> int: ... @num.setter - def num(self, value: int): ... + def num(self, value: int) -> None: ... def __init__( self, *, @@ -341,7 +341,7 @@ class NonCopyableUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_co @property def s(self) -> _fbthrift_current_module.NonCopyableStruct: ... @s.setter - def s(self, value: _fbthrift_current_module.NonCopyableStruct): ... + def s(self, value: _fbthrift_current_module.NonCopyableStruct) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index a639e0008d9624..f09d2fac1a8ed5 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/complex-union/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -43,37 +43,37 @@ class ComplexUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compat @property def intValue(self) -> int: ... @intValue.setter - def intValue(self, value: int): ... + def intValue(self, value: int) -> None: ... @property def intListValue(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @intListValue.setter - def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringListValue(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @stringListValue.setter - def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringValue(self) -> str: ... @stringValue.setter - def stringValue(self, value: str): ... + def stringValue(self, value: str) -> None: ... @property def typedefValue(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @typedefValue.setter - def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def stringRef(self) -> str: ... @stringRef.setter - def stringRef(self, value: str): ... + def stringRef(self, value: str) -> None: ... def __init__( self, *, @@ -114,13 +114,13 @@ class ListUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatibl @property def intListValue(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @intListValue.setter - def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def intListValue(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringListValue(self) -> _fbthrift_python_mutable_containers.MutableList[str]: ... @stringListValue.setter - def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def stringListValue(self, value: _fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -153,13 +153,13 @@ class DataUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatibl @property def binaryData(self) -> bytes: ... @binaryData.setter - def binaryData(self, value: bytes): ... + def binaryData(self, value: bytes) -> None: ... @property def stringData(self) -> str: ... @stringData.setter - def stringData(self, value: str): ... + def stringData(self, value: str) -> None: ... def __init__( self, *, @@ -192,19 +192,19 @@ class Val(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def strVal(self) -> str: ... @strVal.setter - def strVal(self, value: str): ... + def strVal(self, value: str) -> None: ... @property def intVal(self) -> int: ... @intVal.setter - def intVal(self, value: int): ... + def intVal(self, value: int) -> None: ... @property def typedefValue(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @typedefValue.setter - def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -235,13 +235,13 @@ class ValUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible @property def v1(self) -> _fbthrift_current_module.Val: ... @v1.setter - def v1(self, value: _fbthrift_current_module.Val): ... + def v1(self, value: _fbthrift_current_module.Val) -> None: ... @property def v2(self) -> _fbthrift_current_module.Val: ... @v2.setter - def v2(self, value: _fbthrift_current_module.Val): ... + def v2(self, value: _fbthrift_current_module.Val) -> None: ... def __init__( self, *, @@ -274,13 +274,13 @@ class VirtualComplexUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift @property def thingOne(self) -> str: ... @thingOne.setter - def thingOne(self, value: str): ... + def thingOne(self, value: str) -> None: ... @property def thingTwo(self) -> str: ... @thingTwo.setter - def thingTwo(self, value: str): ... + def thingTwo(self, value: str) -> None: ... def __init__( self, *, @@ -313,7 +313,7 @@ class NonCopyableStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_ @property def num(self) -> int: ... @num.setter - def num(self, value: int): ... + def num(self, value: int) -> None: ... def __init__( self, *, @@ -340,7 +340,7 @@ class NonCopyableUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_co @property def s(self) -> _fbthrift_current_module.NonCopyableStruct: ... @s.setter - def s(self, value: _fbthrift_current_module.NonCopyableStruct): ... + def s(self, value: _fbthrift_current_module.NonCopyableStruct) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index c43915bed464a7..6486d59195d67a 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -47,31 +47,31 @@ class Internship(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def weeks(self) -> int: ... @weeks.setter - def weeks(self, value: int): ... + def weeks(self, value: int) -> None: ... @property def title(self) -> str: ... @title.setter - def title(self, value: str): ... + def title(self, value: str) -> None: ... @property def employer(self) -> _typing.Optional[_fbthrift_current_module.Company]: ... @employer.setter - def employer(self, value: _typing.Optional[_fbthrift_current_module.Company]): ... + def employer(self, value: _typing.Optional[_fbthrift_current_module.Company]) -> None: ... @property def compensation(self) -> _typing.Optional[float]: ... @compensation.setter - def compensation(self, value: _typing.Optional[float]): ... + def compensation(self, value: _typing.Optional[float]) -> None: ... @property def school(self) -> _typing.Optional[str]: ... @school.setter - def school(self, value: _typing.Optional[str]): ... + def school(self, value: _typing.Optional[str]) -> None: ... def __init__( self, *, @@ -106,13 +106,13 @@ class Range(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_w @property def min(self) -> int: ... @min.setter - def min(self, value: int): ... + def min(self, value: int) -> None: ... @property def max(self) -> int: ... @max.setter - def max(self, value: int): ... + def max(self, value: int) -> None: ... def __init__( self, *, @@ -141,13 +141,13 @@ class struct1(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> str: ... @b.setter - def b(self, value: str): ... + def b(self, value: str) -> None: ... def __init__( self, *, @@ -176,25 +176,25 @@ class struct2(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> str: ... @b.setter - def b(self, value: str): ... + def b(self, value: str) -> None: ... @property def c(self) -> _fbthrift_current_module.struct1: ... @c.setter - def c(self, value: _fbthrift_current_module.struct1): ... + def c(self, value: _fbthrift_current_module.struct1) -> None: ... @property def d(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @d.setter - def d(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def d(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -227,19 +227,19 @@ class struct3(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> str: ... @a.setter - def a(self, value: str): ... + def a(self, value: str) -> None: ... @property def b(self) -> int: ... @b.setter - def b(self, value: int): ... + def b(self, value: int) -> None: ... @property def c(self) -> _fbthrift_current_module.struct2: ... @c.setter - def c(self, value: _fbthrift_current_module.struct2): ... + def c(self, value: _fbthrift_current_module.struct2) -> None: ... def __init__( self, *, @@ -270,19 +270,19 @@ class struct4(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> _typing.Optional[float]: ... @b.setter - def b(self, value: _typing.Optional[float]): ... + def b(self, value: _typing.Optional[float]) -> None: ... @property def c(self) -> _typing.Optional[int]: ... @c.setter - def c(self, value: _typing.Optional[int]): ... + def c(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -313,13 +313,13 @@ class union1(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_w @property def i(self) -> int: ... @i.setter - def i(self, value: int): ... + def i(self, value: int) -> None: ... @property def d(self) -> float: ... @d.setter - def d(self, value: float): ... + def d(self, value: float) -> None: ... def __init__( self, *, @@ -352,25 +352,25 @@ class union2(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_w @property def i(self) -> int: ... @i.setter - def i(self, value: int): ... + def i(self, value: int) -> None: ... @property def d(self) -> float: ... @d.setter - def d(self, value: float): ... + def d(self, value: float) -> None: ... @property def s(self) -> _fbthrift_current_module.struct1: ... @s.setter - def s(self, value: _fbthrift_current_module.struct1): ... + def s(self, value: _fbthrift_current_module.struct1) -> None: ... @property def u(self) -> _fbthrift_current_module.union1: ... @u.setter - def u(self, value: _fbthrift_current_module.union1): ... + def u(self, value: _fbthrift_current_module.union1) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index 96615f8b95ec92..8c924c55215bc5 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/constants/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -46,31 +46,31 @@ class Internship(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def weeks(self) -> int: ... @weeks.setter - def weeks(self, value: int): ... + def weeks(self, value: int) -> None: ... @property def title(self) -> str: ... @title.setter - def title(self, value: str): ... + def title(self, value: str) -> None: ... @property def employer(self) -> _typing.Optional[_fbthrift_current_module.Company]: ... @employer.setter - def employer(self, value: _typing.Optional[_fbthrift_current_module.Company]): ... + def employer(self, value: _typing.Optional[_fbthrift_current_module.Company]) -> None: ... @property def compensation(self) -> _typing.Optional[float]: ... @compensation.setter - def compensation(self, value: _typing.Optional[float]): ... + def compensation(self, value: _typing.Optional[float]) -> None: ... @property def school(self) -> _typing.Optional[str]: ... @school.setter - def school(self, value: _typing.Optional[str]): ... + def school(self, value: _typing.Optional[str]) -> None: ... def __init__( self, *, @@ -105,13 +105,13 @@ class Range(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_w @property def min(self) -> int: ... @min.setter - def min(self, value: int): ... + def min(self, value: int) -> None: ... @property def max(self) -> int: ... @max.setter - def max(self, value: int): ... + def max(self, value: int) -> None: ... def __init__( self, *, @@ -140,13 +140,13 @@ class struct1(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> str: ... @b.setter - def b(self, value: str): ... + def b(self, value: str) -> None: ... def __init__( self, *, @@ -175,25 +175,25 @@ class struct2(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> str: ... @b.setter - def b(self, value: str): ... + def b(self, value: str) -> None: ... @property def c(self) -> _fbthrift_current_module.struct1: ... @c.setter - def c(self, value: _fbthrift_current_module.struct1): ... + def c(self, value: _fbthrift_current_module.struct1) -> None: ... @property def d(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @d.setter - def d(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def d(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -226,19 +226,19 @@ class struct3(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> str: ... @a.setter - def a(self, value: str): ... + def a(self, value: str) -> None: ... @property def b(self) -> int: ... @b.setter - def b(self, value: int): ... + def b(self, value: int) -> None: ... @property def c(self) -> _fbthrift_current_module.struct2: ... @c.setter - def c(self, value: _fbthrift_current_module.struct2): ... + def c(self, value: _fbthrift_current_module.struct2) -> None: ... def __init__( self, *, @@ -269,19 +269,19 @@ class struct4(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> _typing.Optional[float]: ... @b.setter - def b(self, value: _typing.Optional[float]): ... + def b(self, value: _typing.Optional[float]) -> None: ... @property def c(self) -> _typing.Optional[int]: ... @c.setter - def c(self, value: _typing.Optional[int]): ... + def c(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -312,13 +312,13 @@ class union1(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_w @property def i(self) -> int: ... @i.setter - def i(self, value: int): ... + def i(self, value: int) -> None: ... @property def d(self) -> float: ... @d.setter - def d(self, value: float): ... + def d(self, value: float) -> None: ... def __init__( self, *, @@ -351,25 +351,25 @@ class union2(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_w @property def i(self) -> int: ... @i.setter - def i(self, value: int): ... + def i(self, value: int) -> None: ... @property def d(self) -> float: ... @d.setter - def d(self, value: float): ... + def d(self, value: float) -> None: ... @property def s(self) -> _fbthrift_current_module.struct1: ... @s.setter - def s(self, value: _fbthrift_current_module.struct1): ... + def s(self, value: _fbthrift_current_module.struct1) -> None: ... @property def u(self) -> _fbthrift_current_module.union1: ... @u.setter - def u(self, value: _fbthrift_current_module.union1): ... + def u(self, value: _fbthrift_current_module.union1) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi index ca859af0133902..f8a02b36e987a6 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi @@ -49,25 +49,25 @@ class SomeStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def reasonable(self) -> _fbthrift_current_module.Metasyntactic: ... @reasonable.setter - def reasonable(self, value: _fbthrift_current_module.Metasyntactic): ... + def reasonable(self, value: _fbthrift_current_module.Metasyntactic) -> None: ... @property def fine(self) -> _fbthrift_current_module.Metasyntactic: ... @fine.setter - def fine(self, value: _fbthrift_current_module.Metasyntactic): ... + def fine(self, value: _fbthrift_current_module.Metasyntactic) -> None: ... @property def questionable(self) -> _fbthrift_current_module.Metasyntactic: ... @questionable.setter - def questionable(self, value: _fbthrift_current_module.Metasyntactic): ... + def questionable(self, value: _fbthrift_current_module.Metasyntactic) -> None: ... @property def tags(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @tags.setter - def tags(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def tags(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... def __init__( self, *, @@ -100,25 +100,25 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def me2_3(self) -> _fbthrift_current_module.MyEnum2: ... @me2_3.setter - def me2_3(self, value: _fbthrift_current_module.MyEnum2): ... + def me2_3(self, value: _fbthrift_current_module.MyEnum2) -> None: ... @property def me3_n3(self) -> _fbthrift_current_module.MyEnum3: ... @me3_n3.setter - def me3_n3(self, value: _fbthrift_current_module.MyEnum3): ... + def me3_n3(self, value: _fbthrift_current_module.MyEnum3) -> None: ... @property def me1_t1(self) -> _fbthrift_current_module.MyEnum1: ... @me1_t1.setter - def me1_t1(self, value: _fbthrift_current_module.MyEnum1): ... + def me1_t1(self, value: _fbthrift_current_module.MyEnum1) -> None: ... @property def me1_t2(self) -> _fbthrift_current_module.MyEnum1: ... @me1_t2.setter - def me1_t2(self, value: _fbthrift_current_module.MyEnum1): ... + def me1_t2(self, value: _fbthrift_current_module.MyEnum1) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi index 30810fbea2a1ff..7de7165e5f45f7 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/enums/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/enums/module/thrift_mutable_types.pyi @@ -48,25 +48,25 @@ class SomeStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def reasonable(self) -> _fbthrift_current_module.Metasyntactic: ... @reasonable.setter - def reasonable(self, value: _fbthrift_current_module.Metasyntactic): ... + def reasonable(self, value: _fbthrift_current_module.Metasyntactic) -> None: ... @property def fine(self) -> _fbthrift_current_module.Metasyntactic: ... @fine.setter - def fine(self, value: _fbthrift_current_module.Metasyntactic): ... + def fine(self, value: _fbthrift_current_module.Metasyntactic) -> None: ... @property def questionable(self) -> _fbthrift_current_module.Metasyntactic: ... @questionable.setter - def questionable(self, value: _fbthrift_current_module.Metasyntactic): ... + def questionable(self, value: _fbthrift_current_module.Metasyntactic) -> None: ... @property def tags(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @tags.setter - def tags(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def tags(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... def __init__( self, *, @@ -99,25 +99,25 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def me2_3(self) -> _fbthrift_current_module.MyEnum2: ... @me2_3.setter - def me2_3(self, value: _fbthrift_current_module.MyEnum2): ... + def me2_3(self, value: _fbthrift_current_module.MyEnum2) -> None: ... @property def me3_n3(self) -> _fbthrift_current_module.MyEnum3: ... @me3_n3.setter - def me3_n3(self, value: _fbthrift_current_module.MyEnum3): ... + def me3_n3(self, value: _fbthrift_current_module.MyEnum3) -> None: ... @property def me1_t1(self) -> _fbthrift_current_module.MyEnum1: ... @me1_t1.setter - def me1_t1(self, value: _fbthrift_current_module.MyEnum1): ... + def me1_t1(self, value: _fbthrift_current_module.MyEnum1) -> None: ... @property def me1_t2(self) -> _fbthrift_current_module.MyEnum1: ... @me1_t2.setter - def me1_t2(self, value: _fbthrift_current_module.MyEnum1): ... + def me1_t2(self, value: _fbthrift_current_module.MyEnum1) -> None: ... def __init__( self, *, 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 2d29576186a0ca..691ec2534dfb69 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 @@ -42,7 +42,7 @@ class Fiery(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthrift @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... def __init__( self, *, @@ -65,7 +65,7 @@ class Serious(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthri @property def not_sonnet(self) -> _typing.Optional[str]: ... @not_sonnet.setter - def not_sonnet(self, value: _typing.Optional[str]): ... + def not_sonnet(self, value: _typing.Optional[str]) -> None: ... def __init__( self, *, @@ -88,13 +88,13 @@ class ComplexFieldNames(_fbthrift_python_mutable_exceptions.MutableGeneratedErro @property def error_message(self) -> str: ... @error_message.setter - def error_message(self, value: str): ... + def error_message(self, value: str) -> None: ... @property def internal_error_message(self) -> str: ... @internal_error_message.setter - def internal_error_message(self, value: str): ... + def internal_error_message(self, value: str) -> None: ... def __init__( self, *, @@ -118,13 +118,13 @@ class CustomFieldNames(_fbthrift_python_mutable_exceptions.MutableGeneratedError @property def error_message(self) -> str: ... @error_message.setter - def error_message(self, value: str): ... + def error_message(self, value: str) -> None: ... @property def internal_error_message(self) -> str: ... @internal_error_message.setter - def internal_error_message(self, value: str): ... + def internal_error_message(self, value: str) -> None: ... def __init__( self, *, @@ -148,13 +148,13 @@ class ExceptionWithPrimitiveField(_fbthrift_python_mutable_exceptions.MutableGen @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... @property def error_code(self) -> int: ... @error_code.setter - def error_code(self, value: int): ... + def error_code(self, value: int) -> None: ... def __init__( self, *, @@ -178,13 +178,13 @@ class ExceptionWithStructuredAnnotation(_fbthrift_python_mutable_exceptions.Muta @property def message_field(self) -> str: ... @message_field.setter - def message_field(self, value: str): ... + def message_field(self, value: str) -> None: ... @property def error_code(self) -> int: ... @error_code.setter - def error_code(self, value: int): ... + def error_code(self, value: int) -> None: ... def __init__( self, *, 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 3f2b49c32e4957..e0b56043edc6ff 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 @@ -41,7 +41,7 @@ class Fiery(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthrift @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... def __init__( self, *, @@ -64,7 +64,7 @@ class Serious(_fbthrift_python_mutable_exceptions.MutableGeneratedError, _fbthri @property def not_sonnet(self) -> _typing.Optional[str]: ... @not_sonnet.setter - def not_sonnet(self, value: _typing.Optional[str]): ... + def not_sonnet(self, value: _typing.Optional[str]) -> None: ... def __init__( self, *, @@ -87,13 +87,13 @@ class ComplexFieldNames(_fbthrift_python_mutable_exceptions.MutableGeneratedErro @property def error_message(self) -> str: ... @error_message.setter - def error_message(self, value: str): ... + def error_message(self, value: str) -> None: ... @property def internal_error_message(self) -> str: ... @internal_error_message.setter - def internal_error_message(self, value: str): ... + def internal_error_message(self, value: str) -> None: ... def __init__( self, *, @@ -117,13 +117,13 @@ class CustomFieldNames(_fbthrift_python_mutable_exceptions.MutableGeneratedError @property def error_message(self) -> str: ... @error_message.setter - def error_message(self, value: str): ... + def error_message(self, value: str) -> None: ... @property def internal_error_message(self) -> str: ... @internal_error_message.setter - def internal_error_message(self, value: str): ... + def internal_error_message(self, value: str) -> None: ... def __init__( self, *, @@ -147,13 +147,13 @@ class ExceptionWithPrimitiveField(_fbthrift_python_mutable_exceptions.MutableGen @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... @property def error_code(self) -> int: ... @error_code.setter - def error_code(self, value: int): ... + def error_code(self, value: int) -> None: ... def __init__( self, *, @@ -177,13 +177,13 @@ class ExceptionWithStructuredAnnotation(_fbthrift_python_mutable_exceptions.Muta @property def message_field(self) -> str: ... @message_field.setter - def message_field(self, value: str): ... + def message_field(self, value: str) -> None: ... @property def error_code(self) -> int: ... @error_code.setter - def error_code(self, value: int): ... + def error_code(self, value: int) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index 802cc418418ba4..d484901b32f75c 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -44,19 +44,19 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIncludedField(self) -> _fbthrift__includes__thrift_mutable_types.Included: ... @MyIncludedField.setter - def MyIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included): ... + def MyIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included) -> None: ... @property def MyOtherIncludedField(self) -> _fbthrift__includes__thrift_mutable_types.Included: ... @MyOtherIncludedField.setter - def MyOtherIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included): ... + def MyOtherIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included) -> None: ... @property def MyIncludedInt(self) -> int: ... @MyIncludedInt.setter - def MyIncludedInt(self, value: int): ... + def MyIncludedInt(self, value: int) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index aecc2ea25abbfb..0b0f91b2fd5772 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/includes/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -43,19 +43,19 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIncludedField(self) -> _fbthrift__includes__thrift_mutable_types.Included: ... @MyIncludedField.setter - def MyIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included): ... + def MyIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included) -> None: ... @property def MyOtherIncludedField(self) -> _fbthrift__includes__thrift_mutable_types.Included: ... @MyOtherIncludedField.setter - def MyOtherIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included): ... + def MyOtherIncludedField(self, value: _fbthrift__includes__thrift_mutable_types.Included) -> None: ... @property def MyIncludedInt(self) -> int: ... @MyIncludedInt.setter - def MyIncludedInt(self, value: int): ... + def MyIncludedInt(self, value: int) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index fa1bd9dde20208..184ad3c0df3c0e 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -44,7 +44,7 @@ class Fields(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... def __init__( self, *, @@ -71,7 +71,7 @@ class FieldsInjectedToEmptyStruct(_fbthrift_python_mutable_types.MutableStruct, @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... def __init__( self, *, @@ -98,13 +98,13 @@ class FieldsInjectedToStruct(_fbthrift_python_mutable_types.MutableStruct, _fbth @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... @property def string_field(self) -> str: ... @string_field.setter - def string_field(self, value: str): ... + def string_field(self, value: str) -> None: ... def __init__( self, *, @@ -133,25 +133,25 @@ class FieldsInjectedWithIncludedStruct(_fbthrift_python_mutable_types.MutableStr @property def injected_unstructured_annotation_field(self) -> _typing.Optional[str]: ... @injected_unstructured_annotation_field.setter - def injected_unstructured_annotation_field(self, value: _typing.Optional[str]): ... + def injected_unstructured_annotation_field(self, value: _typing.Optional[str]) -> None: ... @property def injected_structured_annotation_field(self) -> _typing.Optional[str]: ... @injected_structured_annotation_field.setter - def injected_structured_annotation_field(self, value: _typing.Optional[str]): ... + def injected_structured_annotation_field(self, value: _typing.Optional[str]) -> None: ... @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... @property def string_field(self) -> str: ... @string_field.setter - def string_field(self, value: str): ... + def string_field(self, value: str) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index 87fa910fc8ffc9..d601b70f64d59e 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/inject_metadata_fields/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -43,7 +43,7 @@ class Fields(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... def __init__( self, *, @@ -70,7 +70,7 @@ class FieldsInjectedToEmptyStruct(_fbthrift_python_mutable_types.MutableStruct, @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... def __init__( self, *, @@ -97,13 +97,13 @@ class FieldsInjectedToStruct(_fbthrift_python_mutable_types.MutableStruct, _fbth @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... @property def string_field(self) -> str: ... @string_field.setter - def string_field(self, value: str): ... + def string_field(self, value: str) -> None: ... def __init__( self, *, @@ -132,25 +132,25 @@ class FieldsInjectedWithIncludedStruct(_fbthrift_python_mutable_types.MutableStr @property def injected_unstructured_annotation_field(self) -> _typing.Optional[str]: ... @injected_unstructured_annotation_field.setter - def injected_unstructured_annotation_field(self, value: _typing.Optional[str]): ... + def injected_unstructured_annotation_field(self, value: _typing.Optional[str]) -> None: ... @property def injected_structured_annotation_field(self) -> _typing.Optional[str]: ... @injected_structured_annotation_field.setter - def injected_structured_annotation_field(self, value: _typing.Optional[str]): ... + def injected_structured_annotation_field(self, value: _typing.Optional[str]) -> None: ... @property def injected_field(self) -> str: ... @injected_field.setter - def injected_field(self, value: str): ... + def injected_field(self, value: str) -> None: ... @property def string_field(self) -> str: ... @string_field.setter - def string_field(self, value: str): ... + def string_field(self, value: str) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index dfbd1e70e0c73b..5e4d4117c12150 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -42,49 +42,49 @@ class Limits(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def max_i64_field(self) -> int: ... @max_i64_field.setter - def max_i64_field(self, value: int): ... + def max_i64_field(self, value: int) -> None: ... @property def min_i64_field(self) -> int: ... @min_i64_field.setter - def min_i64_field(self, value: int): ... + def min_i64_field(self, value: int) -> None: ... @property def max_i32_field(self) -> int: ... @max_i32_field.setter - def max_i32_field(self, value: int): ... + def max_i32_field(self, value: int) -> None: ... @property def min_i32_field(self) -> int: ... @min_i32_field.setter - def min_i32_field(self, value: int): ... + def min_i32_field(self, value: int) -> None: ... @property def max_i16_field(self) -> int: ... @max_i16_field.setter - def max_i16_field(self, value: int): ... + def max_i16_field(self, value: int) -> None: ... @property def min_i16_field(self) -> int: ... @min_i16_field.setter - def min_i16_field(self, value: int): ... + def min_i16_field(self, value: int) -> None: ... @property def max_byte_field(self) -> int: ... @max_byte_field.setter - def max_byte_field(self, value: int): ... + def max_byte_field(self, value: int) -> None: ... @property def min_byte_field(self) -> int: ... @min_byte_field.setter - def min_byte_field(self, value: int): ... + def min_byte_field(self, value: int) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index a081ee496cc069..dd4fa5f92fad0a 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/int_limits/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -41,49 +41,49 @@ class Limits(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def max_i64_field(self) -> int: ... @max_i64_field.setter - def max_i64_field(self, value: int): ... + def max_i64_field(self, value: int) -> None: ... @property def min_i64_field(self) -> int: ... @min_i64_field.setter - def min_i64_field(self, value: int): ... + def min_i64_field(self, value: int) -> None: ... @property def max_i32_field(self) -> int: ... @max_i32_field.setter - def max_i32_field(self, value: int): ... + def max_i32_field(self, value: int) -> None: ... @property def min_i32_field(self) -> int: ... @min_i32_field.setter - def min_i32_field(self, value: int): ... + def min_i32_field(self, value: int) -> None: ... @property def max_i16_field(self) -> int: ... @max_i16_field.setter - def max_i16_field(self, value: int): ... + def max_i16_field(self, value: int) -> None: ... @property def min_i16_field(self) -> int: ... @min_i16_field.setter - def min_i16_field(self, value: int): ... + def min_i16_field(self, value: int) -> None: ... @property def max_byte_field(self) -> int: ... @max_byte_field.setter - def max_byte_field(self, value: int): ... + def max_byte_field(self, value: int) -> None: ... @property def min_byte_field(self) -> int: ... @min_byte_field.setter - def min_byte_field(self, value: int): ... + def min_byte_field(self, value: int) -> None: ... def __init__( self, *, 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 5d77cd00346277..90596890ec1975 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 @@ -44,7 +44,7 @@ class CustomException(_fbthrift_python_mutable_exceptions.MutableGeneratedError, @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... def __init__( self, *, @@ -67,7 +67,7 @@ class ShouldBeBoxed(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def sessionId(self) -> str: ... @sessionId.setter - def sessionId(self, value: str): ... + def sessionId(self, value: str) -> None: ... def __init__( self, *, 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 677ac0b6230228..6489c57216a2ef 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 @@ -43,7 +43,7 @@ class CustomException(_fbthrift_python_mutable_exceptions.MutableGeneratedError, @property def message(self) -> str: ... @message.setter - def message(self, value: str): ... + def message(self, value: str) -> None: ... def __init__( self, *, @@ -66,7 +66,7 @@ class ShouldBeBoxed(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def sessionId(self) -> str: ... @sessionId.setter - def sessionId(self, value: str): ... + def sessionId(self, value: str) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi index ca58d98dd0dc51..59bd393c2d8f09 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_abstract_types/gen-python/module/thrift_mutable_types.pyi @@ -42,7 +42,7 @@ class Mixin1(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def field1(self) -> str: ... @field1.setter - def field1(self, value: str): ... + def field1(self, value: str) -> None: ... def __init__( self, *, @@ -69,13 +69,13 @@ class Mixin2(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def m1(self) -> _fbthrift_current_module.Mixin1: ... @m1.setter - def m1(self, value: _fbthrift_current_module.Mixin1): ... + def m1(self, value: _fbthrift_current_module.Mixin1) -> None: ... @property def field2(self) -> _typing.Optional[str]: ... @field2.setter - def field2(self, value: _typing.Optional[str]): ... + def field2(self, value: _typing.Optional[str]) -> None: ... def __init__( self, *, @@ -104,7 +104,7 @@ class Mixin3Base(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def field3(self) -> str: ... @field3.setter - def field3(self, value: str): ... + def field3(self, value: str) -> None: ... def __init__( self, *, @@ -131,19 +131,19 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def field4(self) -> str: ... @field4.setter - def field4(self, value: str): ... + def field4(self, value: str) -> None: ... @property def m2(self) -> _fbthrift_current_module.Mixin2: ... @m2.setter - def m2(self, value: _fbthrift_current_module.Mixin2): ... + def m2(self, value: _fbthrift_current_module.Mixin2) -> None: ... @property def m3(self) -> _fbthrift_current_module.Mixin3Base: ... @m3.setter - def m3(self, value: _fbthrift_current_module.Mixin3Base): ... + def m3(self, value: _fbthrift_current_module.Mixin3Base) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi index eef9e0b3928656..3a4f3880c014a0 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/mixin/out/python_experimental_generate_mutable_types/gen-python/module/thrift_mutable_types.pyi @@ -41,7 +41,7 @@ class Mixin1(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def field1(self) -> str: ... @field1.setter - def field1(self, value: str): ... + def field1(self, value: str) -> None: ... def __init__( self, *, @@ -68,13 +68,13 @@ class Mixin2(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_ @property def m1(self) -> _fbthrift_current_module.Mixin1: ... @m1.setter - def m1(self, value: _fbthrift_current_module.Mixin1): ... + def m1(self, value: _fbthrift_current_module.Mixin1) -> None: ... @property def field2(self) -> _typing.Optional[str]: ... @field2.setter - def field2(self, value: _typing.Optional[str]): ... + def field2(self, value: _typing.Optional[str]) -> None: ... def __init__( self, *, @@ -103,7 +103,7 @@ class Mixin3Base(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def field3(self) -> str: ... @field3.setter - def field3(self, value: str): ... + def field3(self, value: str) -> None: ... def __init__( self, *, @@ -130,19 +130,19 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def field4(self) -> str: ... @field4.setter - def field4(self, value: str): ... + def field4(self, value: str) -> None: ... @property def m2(self) -> _fbthrift_current_module.Mixin2: ... @m2.setter - def m2(self, value: _fbthrift_current_module.Mixin2): ... + def m2(self, value: _fbthrift_current_module.Mixin2) -> None: ... @property def m3(self) -> _fbthrift_current_module.Mixin3Base: ... @m3.setter - def m3(self, value: _fbthrift_current_module.Mixin3Base): ... + def m3(self, value: _fbthrift_current_module.Mixin3Base) -> None: ... def __init__( self, *, 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 24f12f3b26d4fb..efe28ec7952c02 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 @@ -42,7 +42,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def MyInt(self) -> int: ... @MyInt.setter - def MyInt(self, value: int): ... + def MyInt(self, value: int) -> None: ... def __init__( self, *, 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 cd50f4b31f00bc..bad63c20e03b8b 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 @@ -41,7 +41,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def MyInt(self) -> int: ... @MyInt.setter - def MyInt(self, value: int): ... + def MyInt(self, value: int) -> None: ... def __init__( self, *, 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 d0a3c71864d51d..2c27f1b53ff432 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 @@ -42,7 +42,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def MyInt(self) -> int: ... @MyInt.setter - def MyInt(self, value: int): ... + def MyInt(self, value: int) -> None: ... def __init__( self, *, 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 0efdac2284b2bd..500ae2ab55d696 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 @@ -41,7 +41,7 @@ class Foo(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit @property def MyInt(self) -> int: ... @MyInt.setter - def MyInt(self, value: int): ... + def MyInt(self, value: int) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi index e5e069275b5c0f..f1660500e2ebfc 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_abstract_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi @@ -54,49 +54,49 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def inty(self) -> int: ... @inty.setter - def inty(self, value: int): ... + def inty(self, value: int) -> None: ... @property def stringy(self) -> str: ... @stringy.setter - def stringy(self, value: str): ... + def stringy(self, value: str) -> None: ... @property def myItemy(self) -> _fbthrift_current_module.MyDataItem: ... @myItemy.setter - def myItemy(self, value: _fbthrift_current_module.MyDataItem): ... + def myItemy(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def myEnumy(self) -> _fbthrift_current_module.MyEnum: ... @myEnumy.setter - def myEnumy(self, value: _fbthrift_current_module.MyEnum): ... + def myEnumy(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def booly(self) -> bool: ... @booly.setter - def booly(self, value: bool): ... + def booly(self, value: bool) -> None: ... @property def floatListy(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @floatListy.setter - def floatListy(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def floatListy(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def strMappy(self) -> _fbthrift_python_mutable_containers.MutableMap[bytes, str]: ... @strMappy.setter - def strMappy(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def strMappy(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def intSetty(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @intSetty.setter - def intSetty(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def intSetty(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... def __init__( self, *, @@ -137,7 +137,7 @@ class MyDataItem(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def s(self) -> str: ... @s.setter - def s(self, value: str): ... + def s(self, value: str) -> None: ... def __init__( self, *, @@ -183,13 +183,13 @@ class DoubledPair(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compat @property def s(self) -> str: ... @s.setter - def s(self, value: str): ... + def s(self, value: str) -> None: ... @property def x(self) -> int: ... @x.setter - def x(self, value: int): ... + def x(self, value: int) -> None: ... def __init__( self, *, @@ -218,13 +218,13 @@ class StringPair(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def normal(self) -> str: ... @normal.setter - def normal(self, value: str): ... + def normal(self, value: str) -> None: ... @property def doubled(self) -> str: ... @doubled.setter - def doubled(self, value: str): ... + def doubled(self, value: str) -> None: ... def __init__( self, *, @@ -272,97 +272,97 @@ class PrimitiveStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def booly(self) -> bool: ... @booly.setter - def booly(self, value: bool): ... + def booly(self, value: bool) -> None: ... @property def charry(self) -> int: ... @charry.setter - def charry(self, value: int): ... + def charry(self, value: int) -> None: ... @property def shorty(self) -> int: ... @shorty.setter - def shorty(self, value: int): ... + def shorty(self, value: int) -> None: ... @property def inty(self) -> int: ... @inty.setter - def inty(self, value: int): ... + def inty(self, value: int) -> None: ... @property def longy(self) -> int: ... @longy.setter - def longy(self, value: int): ... + def longy(self, value: int) -> None: ... @property def floaty(self) -> _typing.Optional[float]: ... @floaty.setter - def floaty(self, value: _typing.Optional[float]): ... + def floaty(self, value: _typing.Optional[float]) -> None: ... @property def dubby(self) -> _typing.Optional[float]: ... @dubby.setter - def dubby(self, value: _typing.Optional[float]): ... + def dubby(self, value: _typing.Optional[float]) -> None: ... @property def stringy(self) -> _typing.Optional[str]: ... @stringy.setter - def stringy(self, value: _typing.Optional[str]): ... + def stringy(self, value: _typing.Optional[str]) -> None: ... @property def bytey(self) -> _typing.Optional[bytes]: ... @bytey.setter - def bytey(self, value: _typing.Optional[bytes]): ... + def bytey(self, value: _typing.Optional[bytes]) -> None: ... @property def buffy(self) -> _fbthrift_iobuf.IOBuf: ... @buffy.setter - def buffy(self, value: _fbthrift_iobuf.IOBuf): ... + def buffy(self, value: _fbthrift_iobuf.IOBuf) -> None: ... @property def pointbuffy(self) -> _fbthrift_iobuf.IOBuf: ... @pointbuffy.setter - def pointbuffy(self, value: _fbthrift_iobuf.IOBuf): ... + def pointbuffy(self, value: _fbthrift_iobuf.IOBuf) -> None: ... @property def patched_struct(self) -> _fbthrift_current_module.MyStruct: ... @patched_struct.setter - def patched_struct(self, value: _fbthrift_current_module.MyStruct): ... + def patched_struct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def empty_struct(self) -> _fbthrift_current_module.EmptyStruct: ... @empty_struct.setter - def empty_struct(self, value: _fbthrift_current_module.EmptyStruct): ... + def empty_struct(self, value: _fbthrift_current_module.EmptyStruct) -> None: ... @property def fbstring(self) -> bytes: ... @fbstring.setter - def fbstring(self, value: bytes): ... + def fbstring(self, value: bytes) -> None: ... @property def managed_string_view(self) -> str: ... @managed_string_view.setter - def managed_string_view(self, value: str): ... + def managed_string_view(self, value: str) -> None: ... @property def some_error(self) -> _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.SomeError: ... @some_error.setter - def some_error(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.SomeError): ... + def some_error(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.SomeError) -> None: ... def __init__( self, *, @@ -419,25 +419,25 @@ class AdaptedFields(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def adapted_int(self) -> int: ... @adapted_int.setter - def adapted_int(self, value: int): ... + def adapted_int(self, value: int) -> None: ... @property def list_adapted_int(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @list_adapted_int.setter - def list_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def list_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def set_adapted_int(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @set_adapted_int.setter - def set_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def set_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def inline_adapted_int(self) -> int: ... @inline_adapted_int.setter - def inline_adapted_int(self, value: int): ... + def inline_adapted_int(self, value: int) -> None: ... def __init__( self, *, @@ -470,55 +470,55 @@ class ListStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def boolz(self) -> _fbthrift_python_mutable_containers.MutableList[bool]: ... @boolz.setter - def boolz(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def boolz(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def intz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int]]: ... @intz.setter - def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[str]]: ... @stringz.setter - def stringz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[str]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def stringz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[str]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def encoded(self) -> _fbthrift_python_mutable_containers.MutableList[bytes]: ... @encoded.setter - def encoded(self, value: _fbthrift_python_mutable_containers.MutableList[bytes] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def encoded(self, value: _fbthrift_python_mutable_containers.MutableList[bytes] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def uidz(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @uidz.setter - def uidz(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def uidz(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def matrix(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]: ... @matrix.setter - def matrix(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def matrix(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def ucharz(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]: ... @ucharz.setter - def ucharz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def ucharz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def voxels(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]]: ... @voxels.setter - def voxels(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def voxels(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def buf_ptrs(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_iobuf.IOBuf]: ... @buf_ptrs.setter - def buf_ptrs(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def buf_ptrs(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -561,43 +561,43 @@ class SetStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatib @property def enumz(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyEnum]: ... @enumz.setter - def enumz(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def enumz(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def intz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int]]: ... @intz.setter - def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def binnaz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[bytes]]: ... @binnaz.setter - def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[bytes]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[bytes]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def encoded(self) -> _fbthrift_python_mutable_containers.MutableSet[bytes]: ... @encoded.setter - def encoded(self, value: _fbthrift_python_mutable_containers.MutableSet[bytes] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def encoded(self, value: _fbthrift_python_mutable_containers.MutableSet[bytes] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def uidz(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @uidz.setter - def uidz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def uidz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def charz(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @charz.setter - def charz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def charz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def setz(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[int]]: ... @setz.setter - def setz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def setz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -636,61 +636,61 @@ class MapStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatib @property def enumz(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyEnum, str]: ... @enumz.setter - def enumz(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyEnum, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def enumz(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyEnum, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def intz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @intz.setter - def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def binnaz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_current_module.PrimitiveStruct]]: ... @binnaz.setter - def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_current_module.PrimitiveStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_current_module.PrimitiveStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def encoded(self) -> _fbthrift_python_mutable_containers.MutableMap[str, float]: ... @encoded.setter - def encoded(self, value: _fbthrift_python_mutable_containers.MutableMap[str, float] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def encoded(self, value: _fbthrift_python_mutable_containers.MutableMap[str, float] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def flotz(self) -> _fbthrift_python_mutable_containers.MutableMap[int, float]: ... @flotz.setter - def flotz(self, value: _fbthrift_python_mutable_containers.MutableMap[int, float] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def flotz(self, value: _fbthrift_python_mutable_containers.MutableMap[int, float] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def map_list(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]]: ... @map_list.setter - def map_list(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def map_list(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def list_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]]: ... @list_map.setter - def list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def fast_list_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[float]]: ... @fast_list_map.setter - def fast_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def fast_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def buf_map(self) -> _fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_iobuf.IOBuf]: ... @buf_map.setter - def buf_map(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def buf_map(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def unsigned_list_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]]: ... @unsigned_list_map.setter - def unsigned_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def unsigned_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -735,61 +735,61 @@ class ComposeStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def enum_(self) -> _fbthrift_current_module.MyEnum: ... @enum_.setter - def enum_(self, value: _fbthrift_current_module.MyEnum): ... + def enum_(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def renamed_(self) -> _fbthrift_current_module.AnnoyingEnum: ... @renamed_.setter - def renamed_(self, value: _fbthrift_current_module.AnnoyingEnum): ... + def renamed_(self, value: _fbthrift_current_module.AnnoyingEnum) -> None: ... @property def primitive(self) -> _fbthrift_current_module.PrimitiveStruct: ... @primitive.setter - def primitive(self, value: _fbthrift_current_module.PrimitiveStruct): ... + def primitive(self, value: _fbthrift_current_module.PrimitiveStruct) -> None: ... @property def aliased(self) -> _fbthrift_current_module.ListStruct: ... @aliased.setter - def aliased(self, value: _fbthrift_current_module.ListStruct): ... + def aliased(self, value: _fbthrift_current_module.ListStruct) -> None: ... @property def xenum(self) -> _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepEnum: ... @xenum.setter - def xenum(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepEnum): ... + def xenum(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepEnum) -> None: ... @property def xstruct(self) -> _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct: ... @xstruct.setter - def xstruct(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct): ... + def xstruct(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct) -> None: ... @property def friends(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct]: ... @friends.setter - def friends(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def friends(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def serial_struct(self) -> _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedStruct: ... @serial_struct.setter - def serial_struct(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedStruct): ... + def serial_struct(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedStruct) -> None: ... @property def serial_union(self) -> _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedUnion: ... @serial_union.setter - def serial_union(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedUnion): ... + def serial_union(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedUnion) -> None: ... @property def serial_error(self) -> _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedError: ... @serial_error.setter - def serial_error(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedError): ... + def serial_error(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedError) -> None: ... def __init__( self, *, @@ -834,43 +834,43 @@ class Onion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_wi @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.PrimitiveStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.PrimitiveStruct): ... + def myStruct(self, value: _fbthrift_current_module.PrimitiveStruct) -> None: ... @property def myString(self) -> str: ... @myString.setter - def myString(self, value: str): ... + def myString(self, value: str) -> None: ... @property def intSet(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @intSet.setter - def intSet(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def intSet(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def doubleList(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @doubleList.setter - def doubleList(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def doubleList(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def strMap(self) -> _fbthrift_python_mutable_containers.MutableMap[bytes, str]: ... @strMap.setter - def strMap(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def strMap(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def adapted_int(self) -> int: ... @adapted_int.setter - def adapted_int(self, value: int): ... + def adapted_int(self, value: int) -> None: ... def __init__( self, *, diff --git a/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi b/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi index cf68052f26f02d..42f2ddc0c99f6a 100644 --- a/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi +++ b/third-party/thrift/src/thrift/compiler/test/fixtures/python_capi/out/python_experimental_generate_mutable_types/gen-python/test/fixtures/python_capi/module/thrift_mutable_types.pyi @@ -53,49 +53,49 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def inty(self) -> int: ... @inty.setter - def inty(self, value: int): ... + def inty(self, value: int) -> None: ... @property def stringy(self) -> str: ... @stringy.setter - def stringy(self, value: str): ... + def stringy(self, value: str) -> None: ... @property def myItemy(self) -> _fbthrift_current_module.MyDataItem: ... @myItemy.setter - def myItemy(self, value: _fbthrift_current_module.MyDataItem): ... + def myItemy(self, value: _fbthrift_current_module.MyDataItem) -> None: ... @property def myEnumy(self) -> _fbthrift_current_module.MyEnum: ... @myEnumy.setter - def myEnumy(self, value: _fbthrift_current_module.MyEnum): ... + def myEnumy(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def booly(self) -> bool: ... @booly.setter - def booly(self, value: bool): ... + def booly(self, value: bool) -> None: ... @property def floatListy(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @floatListy.setter - def floatListy(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def floatListy(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def strMappy(self) -> _fbthrift_python_mutable_containers.MutableMap[bytes, str]: ... @strMappy.setter - def strMappy(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def strMappy(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def intSetty(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @intSetty.setter - def intSetty(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def intSetty(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... def __init__( self, *, @@ -136,7 +136,7 @@ class MyDataItem(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def s(self) -> str: ... @s.setter - def s(self, value: str): ... + def s(self, value: str) -> None: ... def __init__( self, *, @@ -182,13 +182,13 @@ class DoubledPair(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compat @property def s(self) -> str: ... @s.setter - def s(self, value: str): ... + def s(self, value: str) -> None: ... @property def x(self) -> int: ... @x.setter - def x(self, value: int): ... + def x(self, value: int) -> None: ... def __init__( self, *, @@ -217,13 +217,13 @@ class StringPair(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def normal(self) -> str: ... @normal.setter - def normal(self, value: str): ... + def normal(self, value: str) -> None: ... @property def doubled(self) -> str: ... @doubled.setter - def doubled(self, value: str): ... + def doubled(self, value: str) -> None: ... def __init__( self, *, @@ -271,97 +271,97 @@ class PrimitiveStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def booly(self) -> bool: ... @booly.setter - def booly(self, value: bool): ... + def booly(self, value: bool) -> None: ... @property def charry(self) -> int: ... @charry.setter - def charry(self, value: int): ... + def charry(self, value: int) -> None: ... @property def shorty(self) -> int: ... @shorty.setter - def shorty(self, value: int): ... + def shorty(self, value: int) -> None: ... @property def inty(self) -> int: ... @inty.setter - def inty(self, value: int): ... + def inty(self, value: int) -> None: ... @property def longy(self) -> int: ... @longy.setter - def longy(self, value: int): ... + def longy(self, value: int) -> None: ... @property def floaty(self) -> _typing.Optional[float]: ... @floaty.setter - def floaty(self, value: _typing.Optional[float]): ... + def floaty(self, value: _typing.Optional[float]) -> None: ... @property def dubby(self) -> _typing.Optional[float]: ... @dubby.setter - def dubby(self, value: _typing.Optional[float]): ... + def dubby(self, value: _typing.Optional[float]) -> None: ... @property def stringy(self) -> _typing.Optional[str]: ... @stringy.setter - def stringy(self, value: _typing.Optional[str]): ... + def stringy(self, value: _typing.Optional[str]) -> None: ... @property def bytey(self) -> _typing.Optional[bytes]: ... @bytey.setter - def bytey(self, value: _typing.Optional[bytes]): ... + def bytey(self, value: _typing.Optional[bytes]) -> None: ... @property def buffy(self) -> _fbthrift_iobuf.IOBuf: ... @buffy.setter - def buffy(self, value: _fbthrift_iobuf.IOBuf): ... + def buffy(self, value: _fbthrift_iobuf.IOBuf) -> None: ... @property def pointbuffy(self) -> _fbthrift_iobuf.IOBuf: ... @pointbuffy.setter - def pointbuffy(self, value: _fbthrift_iobuf.IOBuf): ... + def pointbuffy(self, value: _fbthrift_iobuf.IOBuf) -> None: ... @property def patched_struct(self) -> _fbthrift_current_module.MyStruct: ... @patched_struct.setter - def patched_struct(self, value: _fbthrift_current_module.MyStruct): ... + def patched_struct(self, value: _fbthrift_current_module.MyStruct) -> None: ... @property def empty_struct(self) -> _fbthrift_current_module.EmptyStruct: ... @empty_struct.setter - def empty_struct(self, value: _fbthrift_current_module.EmptyStruct): ... + def empty_struct(self, value: _fbthrift_current_module.EmptyStruct) -> None: ... @property def fbstring(self) -> bytes: ... @fbstring.setter - def fbstring(self, value: bytes): ... + def fbstring(self, value: bytes) -> None: ... @property def managed_string_view(self) -> str: ... @managed_string_view.setter - def managed_string_view(self, value: str): ... + def managed_string_view(self, value: str) -> None: ... @property def some_error(self) -> _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.SomeError: ... @some_error.setter - def some_error(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.SomeError): ... + def some_error(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.SomeError) -> None: ... def __init__( self, *, @@ -418,25 +418,25 @@ class AdaptedFields(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def adapted_int(self) -> int: ... @adapted_int.setter - def adapted_int(self, value: int): ... + def adapted_int(self, value: int) -> None: ... @property def list_adapted_int(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @list_adapted_int.setter - def list_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def list_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def set_adapted_int(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @set_adapted_int.setter - def set_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def set_adapted_int(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def inline_adapted_int(self) -> int: ... @inline_adapted_int.setter - def inline_adapted_int(self, value: int): ... + def inline_adapted_int(self, value: int) -> None: ... def __init__( self, *, @@ -469,55 +469,55 @@ class ListStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def boolz(self) -> _fbthrift_python_mutable_containers.MutableList[bool]: ... @boolz.setter - def boolz(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def boolz(self, value: _fbthrift_python_mutable_containers.MutableList[bool] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def intz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int]]: ... @intz.setter - def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def stringz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[str]]: ... @stringz.setter - def stringz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[str]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def stringz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[str]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def encoded(self) -> _fbthrift_python_mutable_containers.MutableList[bytes]: ... @encoded.setter - def encoded(self, value: _fbthrift_python_mutable_containers.MutableList[bytes] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def encoded(self, value: _fbthrift_python_mutable_containers.MutableList[bytes] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def uidz(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @uidz.setter - def uidz(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def uidz(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def matrix(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]]: ... @matrix.setter - def matrix(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def matrix(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def ucharz(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]: ... @ucharz.setter - def ucharz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def ucharz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def voxels(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]]: ... @voxels.setter - def voxels(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def voxels(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableList[int]]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def buf_ptrs(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_iobuf.IOBuf]: ... @buf_ptrs.setter - def buf_ptrs(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def buf_ptrs(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -560,43 +560,43 @@ class SetStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatib @property def enumz(self) -> _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyEnum]: ... @enumz.setter - def enumz(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def enumz(self, value: _fbthrift_python_mutable_containers.MutableSet[_fbthrift_current_module.MyEnum] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def intz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int]]: ... @intz.setter - def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def binnaz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[bytes]]: ... @binnaz.setter - def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[bytes]] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[bytes]] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def encoded(self) -> _fbthrift_python_mutable_containers.MutableSet[bytes]: ... @encoded.setter - def encoded(self, value: _fbthrift_python_mutable_containers.MutableSet[bytes] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def encoded(self, value: _fbthrift_python_mutable_containers.MutableSet[bytes] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def uidz(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @uidz.setter - def uidz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def uidz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def charz(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @charz.setter - def charz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def charz(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def setz(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[int]]: ... @setz.setter - def setz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def setz(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableSet[int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -635,61 +635,61 @@ class MapStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatib @property def enumz(self) -> _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyEnum, str]: ... @enumz.setter - def enumz(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyEnum, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def enumz(self, value: _fbthrift_python_mutable_containers.MutableMap[_fbthrift_current_module.MyEnum, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def intz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @intz.setter - def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def intz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def binnaz(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_current_module.PrimitiveStruct]]: ... @binnaz.setter - def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_current_module.PrimitiveStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def binnaz(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_current_module.PrimitiveStruct]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def encoded(self) -> _fbthrift_python_mutable_containers.MutableMap[str, float]: ... @encoded.setter - def encoded(self, value: _fbthrift_python_mutable_containers.MutableMap[str, float] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def encoded(self, value: _fbthrift_python_mutable_containers.MutableMap[str, float] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def flotz(self) -> _fbthrift_python_mutable_containers.MutableMap[int, float]: ... @flotz.setter - def flotz(self, value: _fbthrift_python_mutable_containers.MutableMap[int, float] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def flotz(self, value: _fbthrift_python_mutable_containers.MutableMap[int, float] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def map_list(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]]: ... @map_list.setter - def map_list(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def map_list(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, int]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def list_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]]: ... @list_map.setter - def list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def fast_list_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[float]]: ... @fast_list_map.setter - def fast_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def fast_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[float]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def buf_map(self) -> _fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_iobuf.IOBuf]: ... @buf_map.setter - def buf_map(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def buf_map(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, _fbthrift_iobuf.IOBuf] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def unsigned_list_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]]: ... @unsigned_list_map.setter - def unsigned_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def unsigned_list_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_python_mutable_containers.MutableList[int]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -734,61 +734,61 @@ class ComposeStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def enum_(self) -> _fbthrift_current_module.MyEnum: ... @enum_.setter - def enum_(self, value: _fbthrift_current_module.MyEnum): ... + def enum_(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def renamed_(self) -> _fbthrift_current_module.AnnoyingEnum: ... @renamed_.setter - def renamed_(self, value: _fbthrift_current_module.AnnoyingEnum): ... + def renamed_(self, value: _fbthrift_current_module.AnnoyingEnum) -> None: ... @property def primitive(self) -> _fbthrift_current_module.PrimitiveStruct: ... @primitive.setter - def primitive(self, value: _fbthrift_current_module.PrimitiveStruct): ... + def primitive(self, value: _fbthrift_current_module.PrimitiveStruct) -> None: ... @property def aliased(self) -> _fbthrift_current_module.ListStruct: ... @aliased.setter - def aliased(self, value: _fbthrift_current_module.ListStruct): ... + def aliased(self, value: _fbthrift_current_module.ListStruct) -> None: ... @property def xenum(self) -> _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepEnum: ... @xenum.setter - def xenum(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepEnum): ... + def xenum(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepEnum) -> None: ... @property def xstruct(self) -> _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct: ... @xstruct.setter - def xstruct(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct): ... + def xstruct(self, value: _fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct) -> None: ... @property def friends(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct]: ... @friends.setter - def friends(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def friends(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift__test__fixtures__python_capi__thrift_dep__thrift_mutable_types.DepStruct] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def serial_struct(self) -> _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedStruct: ... @serial_struct.setter - def serial_struct(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedStruct): ... + def serial_struct(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedStruct) -> None: ... @property def serial_union(self) -> _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedUnion: ... @serial_union.setter - def serial_union(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedUnion): ... + def serial_union(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedUnion) -> None: ... @property def serial_error(self) -> _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedError: ... @serial_error.setter - def serial_error(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedError): ... + def serial_error(self, value: _fbthrift__test__fixtures__python_capi__serialized_dep__thrift_mutable_types.SerializedError) -> None: ... def __init__( self, *, @@ -833,43 +833,43 @@ class Onion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compatible_wi @property def myEnum(self) -> _fbthrift_current_module.MyEnum: ... @myEnum.setter - def myEnum(self, value: _fbthrift_current_module.MyEnum): ... + def myEnum(self, value: _fbthrift_current_module.MyEnum) -> None: ... @property def myStruct(self) -> _fbthrift_current_module.PrimitiveStruct: ... @myStruct.setter - def myStruct(self, value: _fbthrift_current_module.PrimitiveStruct): ... + def myStruct(self, value: _fbthrift_current_module.PrimitiveStruct) -> None: ... @property def myString(self) -> str: ... @myString.setter - def myString(self, value: str): ... + def myString(self, value: str) -> None: ... @property def intSet(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @intSet.setter - def intSet(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def intSet(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def doubleList(self) -> _fbthrift_python_mutable_containers.MutableList[float]: ... @doubleList.setter - def doubleList(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def doubleList(self, value: _fbthrift_python_mutable_containers.MutableList[float] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def strMap(self) -> _fbthrift_python_mutable_containers.MutableMap[bytes, str]: ... @strMap.setter - def strMap(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def strMap(self, value: _fbthrift_python_mutable_containers.MutableMap[bytes, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def adapted_int(self) -> int: ... @adapted_int.setter - def adapted_int(self, value: int): ... + def adapted_int(self, value: int) -> None: ... def __init__( self, *, 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 b73f42a5a76f79..0058c109b356b9 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 @@ -44,13 +44,13 @@ class CustomException(_fbthrift_python_mutable_exceptions.MutableGeneratedError, @property def name(self) -> str: ... @name.setter - def name(self, value: str): ... + def name(self, value: str) -> None: ... @property def result(self) -> _fbthrift_current_module.Result: ... @result.setter - def result(self, value: _fbthrift_current_module.Result): ... + def result(self, value: _fbthrift_current_module.Result) -> None: ... def __init__( self, *, 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 ffd78c218062ba..10450f9232dd27 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 @@ -66,7 +66,7 @@ class decorated_struct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_c @property def field(self) -> str: ... @field.setter - def field(self, value: str): ... + def field(self, value: str) -> None: ... def __init__( self, *, @@ -93,49 +93,49 @@ class ContainerStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def fieldB(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldB.setter - def fieldB(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldB(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldC(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldC.setter - def fieldC(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldC(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldD(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldD.setter - def fieldD(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldD(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldE(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldE.setter - def fieldE(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldE(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldF(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @fieldF.setter - def fieldF(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def fieldF(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def fieldG(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @fieldG.setter - def fieldG(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def fieldG(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def fieldH(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @fieldH.setter - def fieldH(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def fieldH(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def fieldA(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldA.setter - def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -176,7 +176,7 @@ class CppTypeStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def fieldA(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldA.setter - def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -203,7 +203,7 @@ class VirtualStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... def __init__( self, *, @@ -230,13 +230,13 @@ class MyStructWithForwardRefEnum(_fbthrift_python_mutable_types.MutableStruct, _ @property def a(self) -> _fbthrift_current_module.MyForwardRefEnum: ... @a.setter - def a(self, value: _fbthrift_current_module.MyForwardRefEnum): ... + def a(self, value: _fbthrift_current_module.MyForwardRefEnum) -> None: ... @property def b(self) -> _fbthrift_current_module.MyForwardRefEnum: ... @b.setter - def b(self, value: _fbthrift_current_module.MyForwardRefEnum): ... + def b(self, value: _fbthrift_current_module.MyForwardRefEnum) -> None: ... def __init__( self, *, @@ -265,13 +265,13 @@ class TrivialNumeric(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> bool: ... @b.setter - def b(self, value: bool): ... + def b(self, value: bool) -> None: ... def __init__( self, *, @@ -300,13 +300,13 @@ class TrivialNestedWithDefault(_fbthrift_python_mutable_types.MutableStruct, _fb @property def z(self) -> int: ... @z.setter - def z(self, value: int): ... + def z(self, value: int) -> None: ... @property def n(self) -> _fbthrift_current_module.TrivialNumeric: ... @n.setter - def n(self, value: _fbthrift_current_module.TrivialNumeric): ... + def n(self, value: _fbthrift_current_module.TrivialNumeric) -> None: ... def __init__( self, *, @@ -335,13 +335,13 @@ class ComplexString(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def a(self) -> str: ... @a.setter - def a(self, value: str): ... + def a(self, value: str) -> None: ... @property def b(self) -> _fbthrift_python_mutable_containers.MutableMap[str, int]: ... @b.setter - def b(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def b(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -370,13 +370,13 @@ class ComplexNestedWithDefault(_fbthrift_python_mutable_types.MutableStruct, _fb @property def z(self) -> str: ... @z.setter - def z(self, value: str): ... + def z(self, value: str) -> None: ... @property def n(self) -> _fbthrift_current_module.ComplexString: ... @n.setter - def n(self, value: _fbthrift_current_module.ComplexString): ... + def n(self, value: _fbthrift_current_module.ComplexString) -> None: ... def __init__( self, *, @@ -405,31 +405,31 @@ class MinPadding(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def small(self) -> int: ... @small.setter - def small(self, value: int): ... + def small(self, value: int) -> None: ... @property def big(self) -> int: ... @big.setter - def big(self, value: int): ... + def big(self, value: int) -> None: ... @property def medium(self) -> int: ... @medium.setter - def medium(self, value: int): ... + def medium(self, value: int) -> None: ... @property def biggish(self) -> int: ... @biggish.setter - def biggish(self, value: int): ... + def biggish(self, value: int) -> None: ... @property def tiny(self) -> int: ... @tiny.setter - def tiny(self, value: int): ... + def tiny(self, value: int) -> None: ... def __init__( self, *, @@ -464,31 +464,31 @@ class MinPaddingWithCustomType(_fbthrift_python_mutable_types.MutableStruct, _fb @property def small(self) -> int: ... @small.setter - def small(self, value: int): ... + def small(self, value: int) -> None: ... @property def big(self) -> int: ... @big.setter - def big(self, value: int): ... + def big(self, value: int) -> None: ... @property def medium(self) -> int: ... @medium.setter - def medium(self, value: int): ... + def medium(self, value: int) -> None: ... @property def biggish(self) -> int: ... @biggish.setter - def biggish(self, value: int): ... + def biggish(self, value: int) -> None: ... @property def tiny(self) -> int: ... @tiny.setter - def tiny(self, value: int): ... + def tiny(self, value: int) -> None: ... def __init__( self, *, @@ -523,25 +523,25 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def majorVer(self) -> int: ... @majorVer.setter - def majorVer(self, value: int): ... + def majorVer(self, value: int) -> None: ... @property def data(self) -> _fbthrift_current_module.MyDataItem: ... @data.setter - def data(self, value: _fbthrift_current_module.MyDataItem): ... + def data(self, value: _fbthrift_current_module.MyDataItem) -> None: ... def __init__( self, *, @@ -593,7 +593,7 @@ class Renaming(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def foo(self) -> int: ... @foo.setter - def foo(self, value: int): ... + def foo(self, value: int) -> None: ... def __init__( self, *, @@ -620,13 +620,13 @@ class AnnotatedTypes(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def binary_field(self) -> bytes: ... @binary_field.setter - def binary_field(self, value: bytes): ... + def binary_field(self, value: bytes) -> None: ... @property def list_field(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @list_field.setter - def list_field(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def list_field(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -655,13 +655,13 @@ class ForwardUsageRoot(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_c @property def ForwardUsageStruct(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageStruct]: ... @ForwardUsageStruct.setter - def ForwardUsageStruct(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageStruct]): ... + def ForwardUsageStruct(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageStruct]) -> None: ... @property def ForwardUsageByRef(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageByRef]: ... @ForwardUsageByRef.setter - def ForwardUsageByRef(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageByRef]): ... + def ForwardUsageByRef(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageByRef]) -> None: ... def __init__( self, *, @@ -690,7 +690,7 @@ class ForwardUsageStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift @property def foo(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]: ... @foo.setter - def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]): ... + def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]) -> None: ... def __init__( self, *, @@ -717,7 +717,7 @@ class ForwardUsageByRef(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_ @property def foo(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]: ... @foo.setter - def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]): ... + def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]) -> None: ... def __init__( self, *, @@ -744,7 +744,7 @@ class IncompleteMap(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.IncompleteMapDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.IncompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.IncompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -790,7 +790,7 @@ class CompleteMap(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compat @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.CompleteMapDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.CompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.CompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -836,7 +836,7 @@ class IncompleteList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.IncompleteListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.IncompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.IncompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -882,7 +882,7 @@ class CompleteList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compa @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.CompleteListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.CompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.CompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -928,7 +928,7 @@ class AdaptedList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compat @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.AdaptedListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.AdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.AdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -955,7 +955,7 @@ class AdaptedListDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def field(self) -> _fbthrift_current_module.AdaptedList: ... @field.setter - def field(self, value: _fbthrift_current_module.AdaptedList): ... + def field(self, value: _fbthrift_current_module.AdaptedList) -> None: ... def __init__( self, *, @@ -982,7 +982,7 @@ class DependentAdaptedList(_fbthrift_python_mutable_types.MutableStruct, _fbthri @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.DependentAdaptedListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.DependentAdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.DependentAdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -1009,7 +1009,7 @@ class DependentAdaptedListDep(_fbthrift_python_mutable_types.MutableStruct, _fbt @property def field(self) -> _typing.Optional[int]: ... @field.setter - def field(self, value: _typing.Optional[int]): ... + def field(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -1036,43 +1036,43 @@ class AllocatorAware(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def aa_list(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @aa_list.setter - def aa_list(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def aa_list(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def aa_set(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @aa_set.setter - def aa_set(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def aa_set(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def aa_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, int]: ... @aa_map.setter - def aa_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def aa_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def aa_string(self) -> str: ... @aa_string.setter - def aa_string(self, value: str): ... + def aa_string(self, value: str) -> None: ... @property def not_a_container(self) -> int: ... @not_a_container.setter - def not_a_container(self, value: int): ... + def not_a_container(self, value: int) -> None: ... @property def aa_unique(self) -> int: ... @aa_unique.setter - def aa_unique(self, value: int): ... + def aa_unique(self, value: int) -> None: ... @property def aa_shared(self) -> int: ... @aa_shared.setter - def aa_shared(self, value: int): ... + def aa_shared(self, value: int) -> None: ... def __init__( self, *, @@ -1111,13 +1111,13 @@ class AllocatorAware2(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def not_a_container(self) -> int: ... @not_a_container.setter - def not_a_container(self, value: int): ... + def not_a_container(self, value: int) -> None: ... @property def box_field(self) -> _typing.Optional[int]: ... @box_field.setter - def box_field(self, value: _typing.Optional[int]): ... + def box_field(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -1146,19 +1146,19 @@ class TypedefStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def i32_field(self) -> int: ... @i32_field.setter - def i32_field(self, value: int): ... + def i32_field(self, value: int) -> None: ... @property def IntTypedef_field(self) -> int: ... @IntTypedef_field.setter - def IntTypedef_field(self, value: int): ... + def IntTypedef_field(self, value: int) -> None: ... @property def UintTypedef_field(self) -> int: ... @UintTypedef_field.setter - def UintTypedef_field(self, value: int): ... + def UintTypedef_field(self, value: int) -> None: ... def __init__( self, *, @@ -1189,7 +1189,7 @@ class StructWithDoubleUnderscores(_fbthrift_python_mutable_types.MutableStruct, @property def _StructWithDoubleUnderscores__field(self) -> int: ... @_StructWithDoubleUnderscores__field.setter - def _StructWithDoubleUnderscores__field(self, value: int): ... + def _StructWithDoubleUnderscores__field(self, value: int) -> None: ... def __init__( self, *, 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 03c76a05c865a1..66f4a497ad40a6 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 @@ -65,7 +65,7 @@ class decorated_struct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_c @property def field(self) -> str: ... @field.setter - def field(self, value: str): ... + def field(self, value: str) -> None: ... def __init__( self, *, @@ -92,49 +92,49 @@ class ContainerStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def fieldB(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldB.setter - def fieldB(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldB(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldC(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldC.setter - def fieldC(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldC(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldD(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldD.setter - def fieldD(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldD(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldE(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldE.setter - def fieldE(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldE(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def fieldF(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @fieldF.setter - def fieldF(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def fieldF(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def fieldG(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @fieldG.setter - def fieldG(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def fieldG(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def fieldH(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ... @fieldH.setter - def fieldH(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def fieldH(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def fieldA(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldA.setter - def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -175,7 +175,7 @@ class CppTypeStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def fieldA(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @fieldA.setter - def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def fieldA(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -202,7 +202,7 @@ class VirtualStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... def __init__( self, *, @@ -229,13 +229,13 @@ class MyStructWithForwardRefEnum(_fbthrift_python_mutable_types.MutableStruct, _ @property def a(self) -> _fbthrift_current_module.MyForwardRefEnum: ... @a.setter - def a(self, value: _fbthrift_current_module.MyForwardRefEnum): ... + def a(self, value: _fbthrift_current_module.MyForwardRefEnum) -> None: ... @property def b(self) -> _fbthrift_current_module.MyForwardRefEnum: ... @b.setter - def b(self, value: _fbthrift_current_module.MyForwardRefEnum): ... + def b(self, value: _fbthrift_current_module.MyForwardRefEnum) -> None: ... def __init__( self, *, @@ -264,13 +264,13 @@ class TrivialNumeric(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def a(self) -> int: ... @a.setter - def a(self, value: int): ... + def a(self, value: int) -> None: ... @property def b(self) -> bool: ... @b.setter - def b(self, value: bool): ... + def b(self, value: bool) -> None: ... def __init__( self, *, @@ -299,13 +299,13 @@ class TrivialNestedWithDefault(_fbthrift_python_mutable_types.MutableStruct, _fb @property def z(self) -> int: ... @z.setter - def z(self, value: int): ... + def z(self, value: int) -> None: ... @property def n(self) -> _fbthrift_current_module.TrivialNumeric: ... @n.setter - def n(self, value: _fbthrift_current_module.TrivialNumeric): ... + def n(self, value: _fbthrift_current_module.TrivialNumeric) -> None: ... def __init__( self, *, @@ -334,13 +334,13 @@ class ComplexString(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def a(self) -> str: ... @a.setter - def a(self, value: str): ... + def a(self, value: str) -> None: ... @property def b(self) -> _fbthrift_python_mutable_containers.MutableMap[str, int]: ... @b.setter - def b(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def b(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -369,13 +369,13 @@ class ComplexNestedWithDefault(_fbthrift_python_mutable_types.MutableStruct, _fb @property def z(self) -> str: ... @z.setter - def z(self, value: str): ... + def z(self, value: str) -> None: ... @property def n(self) -> _fbthrift_current_module.ComplexString: ... @n.setter - def n(self, value: _fbthrift_current_module.ComplexString): ... + def n(self, value: _fbthrift_current_module.ComplexString) -> None: ... def __init__( self, *, @@ -404,31 +404,31 @@ class MinPadding(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati @property def small(self) -> int: ... @small.setter - def small(self, value: int): ... + def small(self, value: int) -> None: ... @property def big(self) -> int: ... @big.setter - def big(self, value: int): ... + def big(self, value: int) -> None: ... @property def medium(self) -> int: ... @medium.setter - def medium(self, value: int): ... + def medium(self, value: int) -> None: ... @property def biggish(self) -> int: ... @biggish.setter - def biggish(self, value: int): ... + def biggish(self, value: int) -> None: ... @property def tiny(self) -> int: ... @tiny.setter - def tiny(self, value: int): ... + def tiny(self, value: int) -> None: ... def __init__( self, *, @@ -463,31 +463,31 @@ class MinPaddingWithCustomType(_fbthrift_python_mutable_types.MutableStruct, _fb @property def small(self) -> int: ... @small.setter - def small(self, value: int): ... + def small(self, value: int) -> None: ... @property def big(self) -> int: ... @big.setter - def big(self, value: int): ... + def big(self, value: int) -> None: ... @property def medium(self) -> int: ... @medium.setter - def medium(self, value: int): ... + def medium(self, value: int) -> None: ... @property def biggish(self) -> int: ... @biggish.setter - def biggish(self, value: int): ... + def biggish(self, value: int) -> None: ... @property def tiny(self) -> int: ... @tiny.setter - def tiny(self, value: int): ... + def tiny(self, value: int) -> None: ... def __init__( self, *, @@ -522,25 +522,25 @@ class MyStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def MyIntField(self) -> int: ... @MyIntField.setter - def MyIntField(self, value: int): ... + def MyIntField(self, value: int) -> None: ... @property def MyStringField(self) -> str: ... @MyStringField.setter - def MyStringField(self, value: str): ... + def MyStringField(self, value: str) -> None: ... @property def majorVer(self) -> int: ... @majorVer.setter - def majorVer(self, value: int): ... + def majorVer(self, value: int) -> None: ... @property def data(self) -> _fbthrift_current_module.MyDataItem: ... @data.setter - def data(self, value: _fbthrift_current_module.MyDataItem): ... + def data(self, value: _fbthrift_current_module.MyDataItem) -> None: ... def __init__( self, *, @@ -592,7 +592,7 @@ class Renaming(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatibl @property def foo(self) -> int: ... @foo.setter - def foo(self, value: int): ... + def foo(self, value: int) -> None: ... def __init__( self, *, @@ -619,13 +619,13 @@ class AnnotatedTypes(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def binary_field(self) -> bytes: ... @binary_field.setter - def binary_field(self, value: bytes): ... + def binary_field(self, value: bytes) -> None: ... @property def list_field(self) -> _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]]: ... @list_field.setter - def list_field(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def list_field(self, value: _fbthrift_python_mutable_containers.MutableList[_fbthrift_python_mutable_containers.MutableMap[int, str]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -654,13 +654,13 @@ class ForwardUsageRoot(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_c @property def ForwardUsageStruct(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageStruct]: ... @ForwardUsageStruct.setter - def ForwardUsageStruct(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageStruct]): ... + def ForwardUsageStruct(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageStruct]) -> None: ... @property def ForwardUsageByRef(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageByRef]: ... @ForwardUsageByRef.setter - def ForwardUsageByRef(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageByRef]): ... + def ForwardUsageByRef(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageByRef]) -> None: ... def __init__( self, *, @@ -689,7 +689,7 @@ class ForwardUsageStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift @property def foo(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]: ... @foo.setter - def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]): ... + def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]) -> None: ... def __init__( self, *, @@ -716,7 +716,7 @@ class ForwardUsageByRef(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_ @property def foo(self) -> _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]: ... @foo.setter - def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]): ... + def foo(self, value: _typing.Optional[_fbthrift_current_module.ForwardUsageRoot]) -> None: ... def __init__( self, *, @@ -743,7 +743,7 @@ class IncompleteMap(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.IncompleteMapDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.IncompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.IncompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -789,7 +789,7 @@ class CompleteMap(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compat @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.CompleteMapDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.CompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, _fbthrift_current_module.CompleteMapDep]] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... def __init__( self, *, @@ -835,7 +835,7 @@ class IncompleteList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.IncompleteListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.IncompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.IncompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -881,7 +881,7 @@ class CompleteList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compa @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.CompleteListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.CompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.CompleteListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -927,7 +927,7 @@ class AdaptedList(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compat @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.AdaptedListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.AdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.AdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -954,7 +954,7 @@ class AdaptedListDep(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def field(self) -> _fbthrift_current_module.AdaptedList: ... @field.setter - def field(self, value: _fbthrift_current_module.AdaptedList): ... + def field(self, value: _fbthrift_current_module.AdaptedList) -> None: ... def __init__( self, *, @@ -981,7 +981,7 @@ class DependentAdaptedList(_fbthrift_python_mutable_types.MutableStruct, _fbthri @property def field(self) -> _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.DependentAdaptedListDep]]: ... @field.setter - def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.DependentAdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def field(self, value: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[_fbthrift_current_module.DependentAdaptedListDep]] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... def __init__( self, *, @@ -1008,7 +1008,7 @@ class DependentAdaptedListDep(_fbthrift_python_mutable_types.MutableStruct, _fbt @property def field(self) -> _typing.Optional[int]: ... @field.setter - def field(self, value: _typing.Optional[int]): ... + def field(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -1035,43 +1035,43 @@ class AllocatorAware(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_com @property def aa_list(self) -> _fbthrift_python_mutable_containers.MutableList[int]: ... @aa_list.setter - def aa_list(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper): ... + def aa_list(self, value: _fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper) -> None: ... @property def aa_set(self) -> _fbthrift_python_mutable_containers.MutableSet[int]: ... @aa_set.setter - def aa_set(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper): ... + def aa_set(self, value: _fbthrift_python_mutable_containers.MutableSet[int] | _fbthrift_python_mutable_types._ThriftSetWrapper) -> None: ... @property def aa_map(self) -> _fbthrift_python_mutable_containers.MutableMap[int, int]: ... @aa_map.setter - def aa_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ... + def aa_map(self, value: _fbthrift_python_mutable_containers.MutableMap[int, int] | _fbthrift_python_mutable_types._ThriftMapWrapper) -> None: ... @property def aa_string(self) -> str: ... @aa_string.setter - def aa_string(self, value: str): ... + def aa_string(self, value: str) -> None: ... @property def not_a_container(self) -> int: ... @not_a_container.setter - def not_a_container(self, value: int): ... + def not_a_container(self, value: int) -> None: ... @property def aa_unique(self) -> int: ... @aa_unique.setter - def aa_unique(self, value: int): ... + def aa_unique(self, value: int) -> None: ... @property def aa_shared(self) -> int: ... @aa_shared.setter - def aa_shared(self, value: int): ... + def aa_shared(self, value: int) -> None: ... def __init__( self, *, @@ -1110,13 +1110,13 @@ class AllocatorAware2(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_co @property def not_a_container(self) -> int: ... @not_a_container.setter - def not_a_container(self, value: int): ... + def not_a_container(self, value: int) -> None: ... @property def box_field(self) -> _typing.Optional[int]: ... @box_field.setter - def box_field(self, value: _typing.Optional[int]): ... + def box_field(self, value: _typing.Optional[int]) -> None: ... def __init__( self, *, @@ -1145,19 +1145,19 @@ class TypedefStruct(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_comp @property def i32_field(self) -> int: ... @i32_field.setter - def i32_field(self, value: int): ... + def i32_field(self, value: int) -> None: ... @property def IntTypedef_field(self) -> int: ... @IntTypedef_field.setter - def IntTypedef_field(self, value: int): ... + def IntTypedef_field(self, value: int) -> None: ... @property def UintTypedef_field(self) -> int: ... @UintTypedef_field.setter - def UintTypedef_field(self, value: int): ... + def UintTypedef_field(self, value: int) -> None: ... def __init__( self, *, @@ -1188,7 +1188,7 @@ class StructWithDoubleUnderscores(_fbthrift_python_mutable_types.MutableStruct, @property def _StructWithDoubleUnderscores__field(self) -> int: ... @_StructWithDoubleUnderscores__field.setter - def _StructWithDoubleUnderscores__field(self, value: int): ... + def _StructWithDoubleUnderscores__field(self, value: int) -> None: ... def __init__( self, *,