def is_valid_assignment(self, node):
if not (type(node) is ast.Assign and self.is_concurrent_call(node.value)):
return False
if len(node.targets) != 1:
raise self.not_implemented_error(node, "Concurrent assignment does not support multiple assignment targets")
if not type(node.targets[0]) is ast.Subscript:
raise self.not_implemented_error(node, "Concurrent assignment only implemented for index based objects")
return True
评论列表
文章目录