def valid_key(key: str):
    """Checks if the user-key is valid, otherwise returns True

    Raises:
        TypeError, Warning

    Returns: True
    
    >>> from vigenere import valid_key
    >>> valid_key('qwerty')
    True
    >>> valid_key(420)
    Traceback (most recent call last):
        ...
    TypeError: The key must be of type string
    >>> valid_key('foo')
    Traceback (most recent call last):
        ...
    Warning: Please use a much stronger key of length > 5
    """
    if type(key) is not str:
        raise TypeError("The key must be of type string")
    if len(key) <= 5:
        raise Warning("Please use a much stronger key of length > 5")
    
    return True