docstr: Sets the opacity of new shapes.
  
  The 'opacity' property is a number and may be specified as:
    - An int or float in the interval [0, 1]
  
  Returns
  -------
  int|float
docstr_tok: ["Sets","the","opacity","of","new","shapes",".","The","'opacity","'","property","is","a","number","and","may","be","specified","as",":","-","An","int","or","float","in","the","interval","[","0",",","1","]","Returns","--","--","--","-","int|float"]
code: def opacity(self):
      """
      Sets the opacity of new shapes.
  
      The 'opacity' property is a number and may be specified as:
        - An int or float in the interval [0, 1]
  
      Returns
      -------
      int|float
      """
      return self["opacity"]
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 25 for calling the Newshape obj's underlying member method code with example usage: obj.opacity() and returns: self