From d0f8d4b35a0b85a513b840561a9bdeef4869adcc Mon Sep 17 00:00:00 2001 From: nutti Date: Sat, 5 Aug 2023 17:38:37 +0900 Subject: [PATCH] Fix: typing.Optional does not output when DataType is mixin --- src/fake_bpy_module/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fake_bpy_module/common.py b/src/fake_bpy_module/common.py index 679595781..e13a44262 100644 --- a/src/fake_bpy_module/common.py +++ b/src/fake_bpy_module/common.py @@ -453,11 +453,11 @@ def modifier(self) -> 'ModifierDataType': def data_types(self) -> List['DataType']: return self._data_types + @DataType.output_typing_optional def to_string(self) -> str: s = [dt.to_string() for dt in self._data_types] return f"typing.Union[{', '.join(s)}]" - @DataType.output_typing_optional def set_data_type(self, index, data_type: 'DataType'): self._data_types[index] = data_type