class_docstr: Keep track of which repair is used, if any, on an incorrect transition
class_docstr_tok: ["Keep","track","of","which","repair","is","used",",","if","any",",","on","an","incorrect","transition"]
docstr: Enumerate values as normal, but also keep a pointer to a function which repairs that kind of error
docstr_tok: ["Enumerate","values","as","normal",",","but","also","keep","a","pointer","to","a","function","which","repairs","that","kind","of","error"]
code: def __new__(cls, fn, correct=False):
      """
      Enumerate values as normal, but also keep a pointer to a function which repairs that kind of error
      """
      value = len(cls.__members__)
      obj = object.__new__(cls)
      obj._value_ = value + 1
      obj.fn = fn
      obj.correct = correct
      return obj
  
imports: from enum import Enum, auto
  from stanza.models.constituency.dynamic_oracle import DynamicOracle
  from stanza.models.constituency.parse_transitions import Shift, OpenConstituent, CloseConstituent
label_desc: Use image node_id 1 for calling the RepairType obj's underlying member method code with example usage: obj.__new__(cls, fn, correct) and returns: obj