pyconfs/configuration.py
def as_str(self, *, indent: int = 2, key_width: int = 20) -> str:
        """Represent configuration list as a string"""
        lines = []
        for value in self.data:
            lines.append(f"\n[[{self.name}]]")
            if isinstance(value, IsConfiguration):
                value_str = value.as_str(
                    indent=indent, key_width=key_width, skip_header=True
                )
                lines.append(value_str)
            else:
                lines.append(f"{_repr_toml(value)}")
        return "\n".join(lines).strip()
Represent configuration list as a string
Represent configuration list as a string
Represent configuration list as a string
def as_str(self, *, indent: int = 2, key_width: int = 20) -> str:
        lines = []
        for value in self.data:
            lines.append(f"\n[[{self.name}]]")
            if isinstance(value, IsConfiguration):
                value_str = value.as_str(
                    indent=indent, key_width=key_width, skip_header=True
                )
                lines.append(value_str)
            else:
                lines.append(f"{_repr_toml(value)}")
        return "\n".join(lines).strip()
def as_str ( self , * , indent : int = 2 , key_width : int = 20 ) -> str : lines = [ ] for value in self . data : lines . append ( f"\n[[{self.name}]]" ) if isinstance ( value , IsConfiguration ) : value_str = value . as_str ( indent = indent , key_width = key_width , skip_header = True ) lines . append ( value_str ) else : lines . append ( f"{_repr_toml(value)}" ) return "\n" . join ( lines ) . strip ( )
Represent configuration list as a string
Represent configuration list as a string
"""Represent configuration list as a string"""
self
indent
int
key_width
int