hapy/generate_py.py
def is_in_parents_props(prop_name: str, parent_props) -> bool:
    """For every prop in parent check if that prop is same as the passed prop
        if so, stop searching and return found
    """
    found = False
    i = 0

    if len(parent_props) <= 0:
        return found

    while not found and i < len(parent_props):
        p = parent_props[i]
        if p.get("value", None) == prop_name or p.get("left", None) == prop_name:
            found = True
        i += 1

    return found
For every prop in parent check if that prop is same as the passed prop
        if so, stop searching and return found
    
For every prop in parent check if that prop is same as the passed prop
if so, stop searching and return found
For every prop in parent check if that prop is same as the passed prop if so stop searching and return found
def is_in_parents_props(prop_name: str, parent_props) -> bool:
    found = False
    i = 0
    if len(parent_props) <= 0:
        return found
    while not found and i < len(parent_props):
        p = parent_props[i]
        if p.get("value", None) == prop_name or p.get("left", None) == prop_name:
            found = True
        i += 1
    return found
def is_in_parents_props ( prop_name : str , parent_props ) -> bool : found = False i = 0 if len ( parent_props ) <= 0 : return found while not found and i < len ( parent_props ) : p = parent_props [ i ] if p . get ( "value" , None ) == prop_name or p . get ( "left" , None ) == prop_name : found = True i += 1 return found
For every prop in parent check if that prop is same as the passed prop
if so, stop searching and return found
For every prop in parent check if that prop is same as the passed prop if so stop searching and return found
"""For every prop in parent check if that prop is same as the passed prop
        if so, stop searching and return found
    """
prop_name
str
parent_props