@staticmethod
def _check_key(key: str) ->None:
    """Check if the key is a valid configuration key.

        This check does not return anything but will instead raise
        an error if the given key does not meet the string requirements.

        Args:
            key (str): Key which should be checked.

        Raises:
            TypeError: If key is not of type string.
            ValueError: If key is an invalid key string.
        """
    if not isinstance(key, str):
        raise TypeError('Given key string is not of type string.')
    if not key or key.isspace():
        raise ValueError('Given key string is not a valid config key string.')
