Skip to content

fix: expose ruamel_typ and ruamel_attrs in to_yaml method#311

Closed
highoncomputers wants to merge 2 commits into
cdgriffith:developfrom
highoncomputers:fix/to-yaml-ruamel-attrs
Closed

fix: expose ruamel_typ and ruamel_attrs in to_yaml method#311
highoncomputers wants to merge 2 commits into
cdgriffith:developfrom
highoncomputers:fix/to-yaml-ruamel-attrs

Conversation

@highoncomputers

Copy link
Copy Markdown

Description

The _to_yaml function already supports ruamel_typ and ruamel_attrs parameters for configuring ruamel.yaml's parser behavior, but Box.to_yaml() didn't expose these. This made it impossible for users to customize ruamel.yaml settings (e.g., increasing the width to prevent unwanted line wrapping of long scalar values).

Changes

  • box/box.py: Added ruamel_typ and ruamel_attrs parameters to to_yaml() and passed them through to _to_yaml()

Type of Change

  • Bug fix

Related Issue

Fixes #307

cdgriffith and others added 2 commits February 21, 2026 10:19
The _to_yaml function already supports ruamel_typ and ruamel_attrs
parameters, but Box.to_yaml() didn't expose them, making it impossible
for users to configure ruamel.yaml behavior (e.g., increasing width
to prevent unwanted line wrapping of long values). This change passes
these parameters through.

Fixes #307
@highoncomputers highoncomputers closed this by deleting the head repository Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants