import re import numpy as np import shap def test_text_plot_rgba_css_uses_plain_floats(): """Regression: NumPy 2 scalars must not appear in CSS (see GH #4146).""" test_values = np.array([[1.0, -0.5], [0.2, 0.1]]) test_base_values = np.array([0.0, 0.0]) test_data = np.array(["a", "b"], dtype="