bumpversion.yaml_dump
A simple YAML dumper to avoid extra dependencies.
DumperFunc
python
DumperFunc = Callable[[Any], str]YAMLDumpers
python
class YAMLDumpers()Registry of YAML dumpers.
add_dumper
python
def add_dumper(data_type: type, dumper: DumperFunc) -> NoneAdd a YAML dumper.
YAML_DUMPERS
python
YAML_DUMPERS = YAMLDumpers()INDENT
python
INDENT = ' 'dump
python
def dump(data: Any) -> strDump a value to a string buffer.
format_str
python
def format_str(val: str) -> strReturn a YAML representation of a string.
format_int
python
def format_int(val: int) -> strReturn a YAML representation of an int.
format_float
python
def format_float(data: float) -> strReturn a YAML representation of a float.
format_bool
python
def format_bool(val: bool) -> strReturn a YAML representation of a bool.
format_dict
python
def format_dict(val: dict) -> strReturn a YAML representation of a dict.
format_sequence
python
def format_sequence(val: Union[list, tuple]) -> strReturn a string representation of a value.
format_none
python
def format_none(_: None) -> strReturn a YAML representation of None.
format_date
python
def format_date(val: datetime.date) -> strReturn a YAML representation of a date.
format_datetime
python
def format_datetime(val: datetime.datetime) -> strReturn a string representation of a value.
format_scminfo
python
def format_scminfo(val: SCMInfo) -> strReturn a string representation of a value.