def __init__(self,<EOL>dest: Type[BaseState],<EOL>factory,<EOL>origin: Type[BaseState]=None,<EOL>weight: float=<NUM_LIT:1.0>,<EOL>desc: Text='<STR_LIT>',<EOL>internal: bool=False,<EOL>do_not_register: bool=False):
self.origin = origin<EOL>self.dest = dest<EOL>self.factory = factory<EOL>self.weight = weight<EOL>self.desc = desc<EOL>self.internal = internal<EOL>self.do_not_register = do_not_register<EOL>if self.origin:<EOL><INDENT>self.origin_name = self.origin.name()<EOL><DEDENT>else:<EOL><INDENT>self.origin_name = None<EOL><DEDENT>
Create the transition.

:param dest: Destination state
:param factory: Trigger factory (see `.builder()` on triggers)
:param origin: Optional origin state
:param weight: Weight of the transition (1 by default, can be reduced)
:param desc: A textual description for documentation
:param internal: That transition is an internal jump (eg it is only
                 triggered right after handling another state).
:param do_not_register: The transition won't be saved into the
                        register.