code: def test_non_float():
      """
      We should error gracefully if non-floats are provided in our vector.
      """
      array_strings = ["1", "2", "3"]
  
      i = AnnoyIndex(3, "euclidean")
      with pytest.raises(TypeError) as excinfo:
          i.add_item(1, array_strings)
      assert str(excinfo.value) == "must be real number, not str"
  
file_path: annoy/test/types_test.py
imports: import random
  import numpy
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 8 for calling a global function with example usage: test_non_float() without return types