class_docstr: A spinner animation.
  
  Args:
      name (str): Name of spinner (run python -m rich.spinner).
      text (RenderableType, optional): A renderable to display at the right of the spinner (str or Text typically). Defaults to "".
      style (StyleType, optional): Style for spinner animation. Defaults to None.
      speed (float, optional): Speed factor for animation. Defaults to 1.0.
  
  Raises:
      KeyError: If name isn't one of the supported spinner animations.
class_docstr_tok: ["A","spinner","animation",".","Args",":","name","(","str",")",":","Name","of","spinner","(","run","python","-m","rich.spinner",")",".","text","(","RenderableType",",","optional",")",":","A","renderable","to","display","at","the","right","of","the","spinner","(","str","or","Text","typically",")",".","Defaults","to","``","''",".","style","(","StyleType",",","optional",")",":","Style","for","spinner","animation",".","Defaults","to","None",".","speed","(","float",",","optional",")",":","Speed","factor","for","animation",".","Defaults","to","1.0",".","Raises",":","KeyError",":","If","name","is","n't","one","of","the","supported","spinner","animations","."]
docstr: Updates attributes of a spinner after it has been started.
  
  Args:
      text (RenderableType, optional): A renderable to display at the right of the spinner (str or Text typically). Defaults to "".
      style (StyleType, optional): Style for spinner animation. Defaults to None.
      speed (float, optional): Speed factor for animation. Defaults to None.
docstr_tok: ["Updates","attributes","of","a","spinner","after","it","has","been","started",".","Args",":","text","(","RenderableType",",","optional",")",":","A","renderable","to","display","at","the","right","of","the","spinner","(","str","or","Text","typically",")",".","Defaults","to","``","''",".","style","(","StyleType",",","optional",")",":","Style","for","spinner","animation",".","Defaults","to","None",".","speed","(","float",",","optional",")",":","Speed","factor","for","animation",".","Defaults","to","None","."]
code: def update(
      self,
      *,
      text: "RenderableType" = "",
      style: Optional["StyleType"] = None,
      speed: Optional[float] = None,
  ) -> None:
      """Updates attributes of a spinner after it has been started.
  
      Args:
          text (RenderableType, optional): A renderable to display at the right of the spinner (str or Text typically). Defaults to "".
          style (StyleType, optional): Style for spinner animation. Defaults to None.
          speed (float, optional): Speed factor for animation. Defaults to None.
      """
      if text:
          self.text = (
              Text.from_markup(text) if isinstance(text, str) else text
          )
      if style:
          self.style = style
      if speed:
          self._update_speed = speed
  
file_path: rich/rich/spinner.py
imports: from typing import cast, List, Optional, TYPE_CHECKING, Union
  from ._spinners import SPINNERS
  from .measure import Measurement
  from .table import Table
  from .text import Text
label_desc: Use image node_id 5 for calling the Spinner obj's underlying member method code with example usage: obj.update() without return types