def inherit_reqshints(tool: Process, parent: Process) -> None:
    'Copy down requirements and hints from ancestors of a given process.'
    for parent_req in parent.requirements:
        found = False
        for tool_req in tool.requirements:
            if (parent_req['class'] == tool_req['class']):
                found = True
                break
        if (not found):
            tool.requirements.append(parent_req)
    for parent_hint in parent.hints:
        found = False
        for tool_req in tool.requirements:
            if (parent_hint['class'] == tool_req['class']):
                found = True
                break
        if (not found):
            for tool_hint in tool.hints:
                if (parent_hint['class'] == tool_hint['class']):
                    found = True
                    break
            if (not found):
                tool.hints.append(parent_hint)
Copy down requirements and hints from ancestors of a given process.
def inherit_reqshints(tool: Process, parent: Process) -> None:
    
    for parent_req in parent.requirements:
        found = False
        for tool_req in tool.requirements:
            if (parent_req['class'] == tool_req['class']):
                found = True
                break
        if (not found):
            tool.requirements.append(parent_req)
    for parent_hint in parent.hints:
        found = False
        for tool_req in tool.requirements:
            if (parent_hint['class'] == tool_req['class']):
                found = True
                break
        if (not found):
            for tool_hint in tool.hints:
                if (parent_hint['class'] == tool_hint['class']):
                    found = True
                    break
            if (not found):
                tool.hints.append(parent_hint)