Skip to content

Commit

Permalink
WIp
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Sep 23, 2024
1 parent 09bd5d1 commit 31ed436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fake_bpy_module/analyzer/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ def _parse_arg_option(self, arg_list_node: ArgumentListNode,
if arg_node:
for dtype_node in arg_node.findall(DataTypeNode):
dtype_node.attributes[option_type] = option_body.astext()
if option_body == "update-argument-type":
print(f"XXXXXXXXXXXX {dtype_node.attributes}")

def _parse_return_option(self, return_node: FunctionReturnNode,
option_type: str,
Expand Down Expand Up @@ -489,8 +491,6 @@ def _parse_signature_detail(self, func_node: FunctionNode,
arg_list_node = func_node.element(ArgumentListNode)
self._parse_arg_option(arg_list_node, m.group(3),
m.group(1), fbody_node)
if fbody_node.astext() == "update-argument-type":
print(f"XXXXXXXXXXXX {m.group(3)} - {m.group(1)}")
elif m.group(2) == "rtype":
func_ret_node = func_node.element(FunctionReturnNode)
self._parse_return_option(func_ret_node, m.group(1),
Expand Down

0 comments on commit 31ed436

Please sign in to comment.