omni_converter/coconut/auto_data.py
def add_cast(self, rule, name=None):  #     def add_cast(self,rule,name=None):
        """
        rule: State->List[State] # should return list of possible casts without data conversion.
        """  #         """

        self.add_conversion(AutoSolver.create_cast_rule(rule, name=name, _swap=True))

        rule: State->List[State] # should return list of possible casts without data conversion.
        
State->List[State] # should return list of possible casts without data conversion.
State - > List [ State ] # should return list of possible casts without data conversion .
def add_cast(self, rule, name=None):  
        self.add_conversion(AutoSolver.create_cast_rule(rule, name=name, _swap=True))
def add_cast ( self , rule , name = None ) : self . add_conversion ( AutoSolver . create_cast_rule ( rule , name = name , _swap = True ) )
rule: State->List[State] # should return list of possible casts without data conversion.
rule : State - > List [ State ] # should return list of possible casts without data conversion .
#     def add_cast(self,rule,name=None): """
        rule: State->List[State] # should return list of possible casts without data conversion.
        """ #         """
self
rule
name