Skip to content

Commit

Permalink
Fix: Missing return type of 'bpy.types.Panel.poll()'
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Nov 6, 2023
1 parent b84d611 commit 6d387ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/fake_bpy_module/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,12 @@ def _parse_rtype(file: IO[Any], level: 'RstLevel') -> str:
if self._cleanup_string(return_) == "An instance of this object.":
return_type = "Same type with self class"

if return_ is not None and return_type is not None:
if return_type is not None:
return_info = ReturnInfo()
if return_ is not None:
return_info.set_description(self._cleanup_string(return_))
if return_type is not None:
return_info.set_data_type(IntermidiateDataType(
self._cleanup_string(return_type)))
return_info.set_data_type(IntermidiateDataType(
self._cleanup_string(return_type)))
info["return"] = return_info

return info
Expand Down

0 comments on commit 6d387ab

Please sign in to comment.