pyrser/type_system/to_fmt.py
def to_fmt(self, with_from=False) -> fmt.indentable:
    """
    Return a Fmt representation of Translator for pretty-printing
    """
    txt = fmt.sep("\n", [
        fmt.sep(
            " ",
            [
                self._type_source,
                "to",
                self._type_target,
                '=',
                self._fun.to_fmt()
            ]
        ),
        self._notify.get_content(with_from)
    ])
    return txt
def to_fmt(self, with_from=False) -> fmt.indentable:
    txt = fmt.sep("\n", [
        fmt.sep(
            " ",
            [
                self._type_source,
                "to",
                self._type_target,
                '=',
                self._fun.to_fmt()
            ]
        ),
        self._notify.get_content(with_from)
    ])
    return txt
def to_fmt ( self , with_from = False ) -> fmt . indentable : txt = fmt . sep ( "\n" , [ fmt . sep ( " " , [ self . _type_source , "to" , self . _type_target , '=' , self . _fun . to_fmt ( ) ] ) , self . _notify . get_content ( with_from ) ] ) return txt
Return a Fmt representation of Translator for pretty-printing
Return a Fmt representation of Translator for pretty - printing