@lru_cache()<EOL>def is_string_type(type_):
string_types = _get_types(Types.STRING)<EOL>if is_typing_type(type_):<EOL><INDENT>return type_ in string_types or is_regex_type(type_)<EOL><DEDENT>return type_ in string_types<EOL>
Checks if the given type is a string type.

    :param type_: The type to check
    :return: True if the type is a string type, otherwise False
    :rtype: bool