Skip to content

Commit 69729db

Browse files
committed
Remove unnecessary usage of numpy dtypes to prevent throwing error
1 parent 8afa4d8 commit 69729db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_acceptance_aok_list(val, validator_aok):
151151
# Numpy v2 has a StrDType but we don't want to convert it yet.
152152
# Change this test if you add support for it.
153153
def test_aok_base64_array(validator_aok):
154-
val = b64(np.array(["a", "b", "c"], dtype=np.dtypes.StrDType))
154+
val = b64(np.array(["a", "b", "c"]))
155155
coerce_val = validator_aok.validate_coerce(val)
156156
assert coerce_val[0] == "a"
157157
assert coerce_val[1] == "b"

0 commit comments

Comments
 (0)