class_docstr: This is a PointPen that passes outline data to another PointPen, but
  reversing the winding direction of all contours. Components are simply
  passed through unchanged.
  
  Closed contours are reversed in such a way that the first point remains
  the first point.
class_docstr_tok: ["This","is","a","PointPen","that","passes","outline","data","to","another","PointPen",",","but","reversing","the","winding","direction","of","all","contours",".","Components","are","simply","passed","through","unchanged",".","Closed","contours","are","reversed","in","such","a","way","that","the","first","point","remains","the","first","point","."]
code: def endPath(self):
      if self.currentContour is None:
          raise PenError("Path not begun")
      self._flushContour()
      self.currentContour = None
  
imports: import math
  from typing import Any, Optional, Tuple, Dict
  from fontTools.pens.basePen import AbstractPen, PenError
  from fontTools.misc.transform import DecomposedTransform
label_desc: Use image node_id 4 for calling the ReverseContourPointPen obj's underlying member method code with example usage: obj.endPath() without return types