Skip to content

Commit 591b4f7

Browse files
authored
Make ForbiddenExtraKeysError.__str__ deterministic (#670)
1 parent f5d0594 commit 591b4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cattrs/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,5 @@ def __str__(self) -> str:
134134
return (
135135
self.message
136136
or f"Extra fields in constructor for {self.cl.__name__}: "
137-
f"{', '.join(self.extra_fields)}"
137+
f"{', '.join(sorted(self.extra_fields))}"
138138
)

0 commit comments

Comments
 (0)