Skip to content

Commit

Permalink
Makes DTOField hashable.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschutt committed Oct 11, 2023
1 parent 2f3e7c3 commit 1e8a24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litestar/dto/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Mark(str, Enum):
"""To mark a field that can neither be read or updated by clients."""


@dataclass
@dataclass(unsafe_hash=True)
class DTOField:
"""For configuring DTO behavior on model fields."""

Expand Down

0 comments on commit 1e8a24f

Please sign in to comment.