Updates MarshalYAML interface to use 'any'

Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
This commit is contained in:
Chad Skeeters 2024-11-11 10:30:39 -06:00 committed by GitHub
parent f20d7c4b90
commit af136c8569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1800,7 +1800,7 @@ func (d Decimal) MarshalJSON() ([]byte, error) {
}
// MarshalYAML implements the [yaml.Marshaler] interface.
func (d Decimal) MarshalYAML() (interface{}, error) {
func (d Decimal) MarshalYAML() (any, error) {
if MarshalYAMLWithoutQuotes {
n := yaml.Node{
Kind: yaml.ScalarNode,