class_docstr: Draw an arrow to the given xy position with optional text at
  distance 'points' away. The direction of the arrow may be
  specified as well as the arrow head style.
class_docstr_tok: ["Draw","an","arrow","to","the","given","xy","position","with","optional","text","at","distance","'points","'","away",".","The","direction","of","the","arrow","may","be","specified","as","well","as","the","arrow","head","style","."]
docstr: Add compatibility for unpickling old Arrow types with different
  .data format.
code: def __setstate__(self, d):
      """
      Add compatibility for unpickling old Arrow types with different
      .data format.
      """
      super().__setstate__(d)
      if len(self.data) == 5:
          direction, text, (x, y), points, arrowstyle = self.data
          self.data = (x, y, text, direction, points, arrowstyle)
  
imports: from numbers import Number
  import numpy
  import param
  from ..core import Dimension, Element, Element2D
  from ..core.data import Dataset
  from ..core.util import datetime_types
label_desc: Use image node_id 2 for calling the Arrow obj's underlying member method code with example usage: obj.__setstate__(d) without return types