(data: Dict, old_char: str, new_char: str)
Replace old_char with new_char in data keys.
Replace old_char with new_char in data keys.
Replace old_char with new_char in data keys .
def replace_in_keys(data: Dict, old_char: str, new_char: str) -> None:
    """Replace old_char with new_char in data keys."""
    for key in list(data):
        if old_char in key:
            new_key = key.replace(old_char, new_char)
            data[new_key] = data.pop(key)
def replace_in_keys ( data : Dict , old_char : str , new_char : str ) -> None : for key in list ( data ) : if old_char in key : new_key = key . replace ( old_char , new_char ) data [ new_key ] = data . pop ( key )