Skip to content

Commit cadb934

Browse files
committed
update docstring to indicate benefits of using this mixin
1 parent 9a44957 commit cadb934

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

synapseclient/models/mixins/enum_coercion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
class EnumCoercionMixin:
77
"""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.
89
910
Subclasses declare a class-level ``_ENUM_FIELDS`` dict mapping field names
1011
to their enum classes. On every ``__setattr__`` call the mixin checks

0 commit comments

Comments
 (0)