Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eq=False to node classes #1500

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add eq=False to node classes #1500

wants to merge 1 commit into from

Commits on Nov 4, 2024

  1. /* PR_START p--cte 05 */ Add eq=False to node classes.

    This sets `eq=False` for node dataclasses as nodes should be unique, and
    equivalence methods should be used for checking as the nodes represent
    recursive data structures. Without this, comparisons or using nodes as keys
    can be slow as the generated equals function will traverse the recursive
    structure.
    plypaul committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    e3c7e41 View commit details
    Browse the repository at this point in the history