Repository navigation
fix(entities): implement __hash__ and __repr__ for EntityInstanceId - #309
Conversation
|
I've opened this focused PR to implement Previously, This PR addresses the issue and adds a readable representation for All 1,345 unit and integration tests pass, with zero regressions. Whenever you have a chance, could you please review it? Thank you for your time! |
|
I've addressed the review feedback by enforcing immutability on
All review feedback has been addressed. Whenever you have a chance, could you please take another look? Thank you for your time and feedback! |
|
andystaples Check it once if you have a chance ! Thank you ! |
|
Hi andystaples, Thank you for identifying the pickle compatibility issue. I've updated the reconstruction logic in Validation
The changes have been pushed to the existing PR branch |
|
Merged, thanks Hardik K (@hardikkaurani) ! |
|
andystaples Thanks a lot for your guidence and review. |

Summary
__hash__forEntityInstanceIdusinghash((self.entity, self.key)), allowing instances to be stored in sets and used as dictionary keys without raisingTypeError: unhashable type.__repr__to provide readable, informative debugging output.reprformatting.CHANGELOG.mdunder theUnreleasedsection.Validation
durabletaskunit and integration tests passed with zero regressions.