Skip to content

Commit

Permalink
Fix: typing.Optional does not output when DataType is mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Aug 5, 2023
1 parent b6eb299 commit d0f8d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fake_bpy_module/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d0f8d4b

Please sign in to comment.