File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
eventsourcingdb/read_event_types Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,8 @@ def parse(unknown_object: dict) -> "EventType":
3232 schema = schema ,
3333 )
3434
35- def __hash__ (self ) -> int : # Changed from str to int
36- # Convert dictionary schema to a hashable form (tuple of items)
35+ def __hash__ (self ) -> int :
3736 if isinstance (self .schema , dict ):
38- # Sort items to ensure consistent hashing
3937 schema_items = tuple (sorted ((k , str (v )) for k , v in self .schema .items ()))
40- return hash ((self .event_type , self .is_phantom , schema_items )) # Remove str() conversion
41- return hash ((self .event_type , self .is_phantom , self .schema )) # Remove str() conversion
38+ return hash ((self .event_type , self .is_phantom , schema_items ))
39+ return hash ((self .event_type , self .is_phantom , self .schema ))
You can’t perform that action at this time.
0 commit comments