class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
  
  Displays a line of infinite length.
  This line may be dragged to indicate a position in data coordinates.
  
  =============================== ===================================================
  **Signals:**
  sigDragged(self)
  sigPositionChangeFinished(self)
  sigPositionChanged(self)
  sigClicked(self, ev)
  =============================== ===================================================
docstr: Set the pen for drawing the line while the mouse hovers over it.
  Allowable arguments are any that are valid
  for :func:`mkPen <pyqtgraph.mkPen>`.
  
  If the line is not movable, then hovering is also disabled.
  
  Added in version 0.9.9.
docstr_tok: ["Set","the","pen","for","drawing","the","line","while","the","mouse","hovers","over","it",".","Allowable","arguments","are","any","that","are","valid","for",":","func",":","`","mkPen","<","pyqtgraph.mkPen",">","`",".","If","the","line","is","not","movable",",","then","hovering","is","also","disabled",".","Added","in","version","0.9.9","."]
code: def setHoverPen(self, *args, **kwargs):
      """Set the pen for drawing the line while the mouse hovers over it.
      Allowable arguments are any that are valid
      for :func:`mkPen <pyqtgraph.mkPen>`.
  
      If the line is not movable, then hovering is also disabled.
  
      Added in version 0.9.9."""
      # If user did not supply a width, then copy it from pen
      widthSpecified = (
          len(args) == 1
          and (
              isinstance(args[0], QtGui.QPen)
              or (isinstance(args[0], dict) and "width" in args[0])
          )
      ) or "width" in kwargs
      self.hoverPen = fn.mkPen(*args, **kwargs)
      if not widthSpecified:
          self.hoverPen.setWidth(self.pen.width())
  
      if self.mouseHovering:
          self.currentPen = self.hoverPen
          self.update()
  
imports: from math import atan2, degrees
  import numpy
  from ..None import functions
  from ..Point import Point
  from ..Qt import QtCore, QtGui
  from .GraphicsItem import GraphicsItem
  from .GraphicsObject import GraphicsObject
  from .TextItem import TextItem
  from .ViewBox import ViewBox
label_desc: Use image node_id 6 for calling the InfiniteLine obj's underlying member method code with example usage: obj.setHoverPen() without return types