Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

Version 7.4.1
-------------

* Fixing #303 Wrong version number (7.3.3) in 7.4.0 release (thanks to Michał Górny)

Version 7.4.0
-------------

Expand All @@ -11,6 +16,11 @@ Version 7.4.0
* Fixing #291 adding frozen boxes (thanks to m-janicki)
* Removing support for Python 3.9 as it is EOL

Version 7.3.3
-------------

* Mistakenly released 7.4.0 as 7.3.3 in PyPI, same as above

Version 7.3.2
-------------

Expand Down
2 changes: 1 addition & 1 deletion box/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

__author__ = "Chris Griffith"
__version__ = "7.3.3"
__version__ = "7.4.1"

from box.box import Box
from box.box_list import BoxList
Expand Down
6 changes: 6 additions & 0 deletions box/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,8 @@ def to_yaml(
encoding: str = "utf-8",
errors: str = "strict",
width: int = 120,
ruamel_typ: str = "rt",
ruamel_attrs: dict | None = None,
**yaml_kwargs,
):
"""
Expand All @@ -1032,6 +1034,8 @@ def to_yaml(
:param encoding: File encoding
:param errors: How to handle encoding errors
:param width: Line width for YAML output
:param ruamel_typ: ruamel.yaml parser type (default "rt")
:param ruamel_attrs: Additional attributes to set on the ruamel dumper
:param yaml_kwargs: additional arguments to pass to yaml.dump
:return: string of YAML (if no filename provided)
"""
Expand All @@ -1042,6 +1046,8 @@ def to_yaml(
encoding=encoding,
errors=errors,
width=width,
ruamel_typ=ruamel_typ,
ruamel_attrs=ruamel_attrs,
**yaml_kwargs,
)

Expand Down