Skip to content

Commit 0a0cab9

Browse files
Yuerchuclaude
andcommitted
🐛 Make FieldInfoMetadata hashable to fix Annotated type usage in sets
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c7085e3 commit 0a0cab9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sqlmodel/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ def __init__(
199199
self.sa_relationship_args = sa_relationship_args
200200
self.sa_relationship_kwargs = sa_relationship_kwargs
201201

202-
203-
@dataclass
202+
@dataclass(unsafe_hash=True)
204203
class FieldInfoMetadata:
205204
primary_key: bool | UndefinedType = Undefined
206205
nullable: bool | UndefinedType = Undefined

0 commit comments

Comments
 (0)