docstr: Sets the opacity of the layer. If `type` is "circle", opacity
  corresponds to the circle opacity (mapbox.layer.paint.circle-
  opacity) If `type` is "line", opacity corresponds to the line
  opacity (mapbox.layer.paint.line-opacity) If `type` is "fill",
  opacity corresponds to the fill opacity
  (mapbox.layer.paint.fill-opacity) If `type` is "symbol",
  opacity corresponds to the icon/text opacity
  (mapbox.layer.paint.text-opacity)
  
  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","the","layer",".","If","`","type","`","is","``","circle","''",",","opacity","corresponds","to","the","circle","opacity","(","mapbox.layer.paint.circle-","opacity",")","If","`","type","`","is","``","line","''",",","opacity","corresponds","to","the","line","opacity","(","mapbox.layer.paint.line-opacity",")","If","`","type","`","is","``","fill","''",",","opacity","corresponds","to","the","fill","opacity","(","mapbox.layer.paint.fill-opacity",")","If","`","type","`","is","``","symbol","''",",","opacity","corresponds","to","the","icon\/text","opacity","(","mapbox.layer.paint.text-opacity",")","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 the layer. If `type` is "circle", opacity
      corresponds to the circle opacity (mapbox.layer.paint.circle-
      opacity) If `type` is "line", opacity corresponds to the line
      opacity (mapbox.layer.paint.line-opacity) If `type` is "fill",
      opacity corresponds to the fill opacity
      (mapbox.layer.paint.fill-opacity) If `type` is "symbol",
      opacity corresponds to the icon/text opacity
      (mapbox.layer.paint.text-opacity)
  
      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 19 for calling the Layer obj's underlying member method code with example usage: obj.opacity() and returns: self