def remove_type_hint(argument: str) ->str:
    """Removes any Python type hints.

    Those are incompatible with `exec` during dynamic `__init__` creation
    (at least not without major workarounds).

    Default values (right hand side) is preserved if exists.

    """
    splitted_on_type_hint = argument.split(':')
    no_type_hint = splitted_on_type_hint[0]
    if len(splitted_on_type_hint) > 1:
        splitted_on_default = splitted_on_type_hint[1].split('=')
        if len(splitted_on_default) > 1:
            no_type_hint += '={}'.format(splitted_on_default[1])
    return no_type_hint
