class_docstr: Tests for the expval function
class_docstr_tok: ["Tests","for","the","expval","function"]
docstr: Test that the numeric type is correct.
docstr_tok: ["Test","that","the","numeric","type","is","correct","."]
code: def test_numeric_type(self, obs):
      """Test that the numeric type is correct."""
      res = qml.expval(obs)
      assert res.numeric_type is float
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Expectation, Shots
  from pennylane.measurements.expval import ExpectationMP
label_desc: Use image node_id 7 for calling the TestExpval obj's underlying member method code with example usage: obj.test_numeric_type(obs) without return types