code: def test_gh_15395(self):
      # HasNew is the second base, so `np.float64` should have priority
      x = B1(1.0)
      assert_(str(x) == "1.0")
  
      # previously caused RecursionError!?
      with pytest.raises(TypeError):
          B1(1.0, 2.0)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_, assert_raises
label_desc: Use image node_id 3 for calling the TestInherit obj's underlying member method code with example usage: obj.test_gh_15395() without return types