class_docstr: Tests various properties of the Shots class.
docstr: Test that __mul__ raises a TypeError for an invalid scalar type.
docstr_tok: ["Test","that","__mul__","raises","a","TypeError","for","an","invalid","scalar","type","."]
code: def test_invalid_scalar_type(self):
      """Test that __mul__ raises a TypeError for an invalid scalar type."""
      shots = Shots(100)
      with pytest.raises(
          TypeError,
          match="Can't multiply Shots with non-integer or float type.",
      ):
          _ = shots * "invalid scalar type"
  
imports: import copy
  import pytest
  from pennylane.measurements import Shots, ShotCopies
label_desc: Use image node_id 6 for calling the TestProperties obj's underlying member method code with example usage: obj.test_invalid_scalar_type() without return types