def invalidate_string_dtypes(dtype_set):
non_string_dtypes = dtype_set - {np.dtype('<STR_LIT:S>').type, np.dtype('<STR_LIT>').type}<EOL>if non_string_dtypes != dtype_set:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>
Change string like dtypes to object for
    ``DataFrame.select_dtypes()``.