We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a44957 commit cadb934Copy full SHA for cadb934
1 file changed
synapseclient/models/mixins/enum_coercion.py
@@ -5,6 +5,7 @@
5
6
class EnumCoercionMixin:
7
"""Mixin for dataclasses that auto-coerces string values to enum types.
8
+ This allows strings or enums to be used interchangeably for the same field.
9
10
Subclasses declare a class-level ``_ENUM_FIELDS`` dict mapping field names
11
to their enum classes. On every ``__setattr__`` call the mixin checks
0 commit comments