diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py index bdced4c496d14..760366bb30c8e 100644 --- a/pandas/core/arrays/string_.py +++ b/pandas/core/arrays/string_.py @@ -34,7 +34,6 @@ register_extension_dtype, ) from pandas.core.dtypes.common import ( - is_array_like, is_bool_dtype, is_integer_dtype, is_object_dtype, @@ -686,8 +685,7 @@ def __setitem__(self, key, value) -> None: f"Cannot set non-string value '{value}' into a StringArray." ) else: - if not is_array_like(value): - value = np.asarray(value, dtype=object) + value = np.asarray(value, dtype=object) if len(value) and not lib.is_string_array(value, skipna=True): raise TypeError("Must provide strings.")