parameters: (p1, p2)
docstring: Return an edge from 2 vectors.
docstring_summary: Return an edge from 2 vectors.
docstring_tokens: Return an edge from 2 vectors .
function: def edg(p1, p2):
      """Return an edge from 2 vectors."""
      if isinstance(p1, App.Vector) and isinstance(p2, App.Vector):
          if DraftVecUtils.equals(p1, p2):
              return None
  
          return Part.LineSegment(p1, p2).toShape()
function_tokens: def edg ( p1 , p2 ) : if isinstance ( p1 , App . Vector ) and isinstance ( p2 , App . Vector ) : if DraftVecUtils . equals ( p1 , p2 ) : return None return Part . LineSegment ( p1 , p2 ) . toShape ( )