Skip to content

config: Use "mapping" instead of "dict" for user-facing errors#751

Merged
adrienverge merged 1 commit intomasterfrom
fix/mapping-not-dict
May 5, 2025
Merged

config: Use "mapping" instead of "dict" for user-facing errors#751
adrienverge merged 1 commit intomasterfrom
fix/mapping-not-dict

Conversation

@adrienverge
Copy link
Copy Markdown
Owner

Previously, these errors used the word "dict" because it's the common term in the Python world. But the YAML term is rather "mapping". The present commit fixes this wording.

This originates from this discussion 1.

Footnotes

  1. https://github.com/adrienverge/yamllint/pull/747#pullrequestreview-2813393998

Previously, these errors used the word "dict" because it's the common
term in the Python world. But the YAML term is rather "mapping". The
present commit fixes this wording.

This originates from this discussion [^2].

[^1]: https://yaml.org/spec/1.2.2/#3211-nodes
[^2]: #747 (review)
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 99.815%. remained the same
when pulling 98bfd8d on fix/mapping-not-dict
into 79a6b2b on master.

@adrienverge adrienverge merged commit 16430e9 into master May 5, 2025
18 checks passed
@adrienverge adrienverge deleted the fix/mapping-not-dict branch May 5, 2025 16:34
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