pdoc/doc.py
def default_value_str(self) -> str:
        """The variable's default value as a pretty-printed str."""
        if self.default_value is empty:
            return ""
        elif isinstance(self.default_value, _tuplegetter):
            return ""
        else:
            try:
                return re.sub(
                    r" at 0x[0-9a-fA-F]+(?=>$)",
                    "",
                    f" = {repr(self.default_value)}",
                )
            except Exception:
                return " = <unable to get value representation>"
The variable's default value as a pretty-printed str.
The variable's default value as a pretty-printed str.
The variable ' s default value as a pretty - printed str .
def default_value_str(self) -> str:
        if self.default_value is empty:
            return ""
        elif isinstance(self.default_value, _tuplegetter):
            return ""
        else:
            try:
                return re.sub(
                    r" at 0x[0-9a-fA-F]+(?=>$)",
                    "",
                    f" = {repr(self.default_value)}",
                )
            except Exception:
                return " = <unable to get value representation>"
def default_value_str ( self ) -> str : if self . default_value is empty : return "" elif isinstance ( self . default_value , _tuplegetter ) : return "" else : try : return re . sub ( r" at 0x[0-9a-fA-F]+(?=>$)" , "" , f" = {repr(self.default_value)}" , ) except Exception : return " = <unable to get value representation>"
The variable's default value as a pretty-printed str.
The variable ' s default value as a pretty - printed str .
"""The variable's default value as a pretty-printed str."""
self