Skip to content

Update instruction logic#185

Open
nm727 wants to merge 1 commit intoColibrITD-SAS:devfrom
nm727:fix-instruction
Open

Update instruction logic#185
nm727 wants to merge 1 commit intoColibrITD-SAS:devfrom
nm727:fix-instruction

Conversation

@nm727
Copy link

@nm727 nm727 commented Feb 16, 2026

No description provided.

@nm727 nm727 mentioned this pull request Feb 16, 2026
Comment on lines +97 to +99
if not isinstance(value, type(self)):
return False
return self.to_dict() == value.to_dict()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using to_dict() makes equality more stable compared to pickle.dumps() . Just a minor tweak is to return NotImplemented rather than False, also consider naming other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants