Skip to content

Commit 053dae4

Browse files
committed
Small clean-up
1 parent 89ef931 commit 053dae4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/core/arrays/string_.py

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ class StringArray(PandasArray):
166166
167167
On the other hand, instantiating StringArrays directly with non-strings will
168168
raise an error:
169+
169170
>>> pd.arrays.StringArray(np.array([1, 2]))
170171
ValueError: StringArray requires a sequence of strings or pandas.NA
171172

pandas/tests/extension/decimal/array.py

-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ def copy(self):
131131
return type(self)(self._data.copy())
132132

133133
def astype(self, dtype, copy=True):
134-
from pandas.core.arrays.string_ import StringDtype
135-
136134
dtype = pandas_dtype(dtype)
137135
if isinstance(dtype, type(self.dtype)):
138136
return type(self)(self._data, context=dtype.context)

0 commit comments

Comments
 (0)