Skip to content

Upstream 16346 - Delete unused contains method#284

Merged
cigamit merged 1 commit intomainfrom
upstream16346
Mar 30, 2026
Merged

Upstream 16346 - Delete unused contains method#284
cigamit merged 1 commit intomainfrom
upstream16346

Conversation

@cigamit
Copy link
Copy Markdown
Contributor

@cigamit cigamit commented Mar 30, 2026

Its not used, and it has a bug in it that will issue an error

Its not used, and it has a bug in it that will issue an error
@cigamit cigamit requested a review from TheWitness March 30, 2026 20:26
@cigamit cigamit self-assigned this Mar 30, 2026
Copilot AI review requested due to automatic review settings March 30, 2026 20:26
@cigamit cigamit added python Pull requests that update python code cleanup labels Mar 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a buggy __contains__ implementation from SimpleDAG that is not used anywhere in the codebase, preventing a potential runtime error and simplifying the DAG container interface.

Changes:

  • Deleted SimpleDAG.__contains__, which referenced non-existent state (self.node) and could raise an exception.
  • Relies on existing explicit lookup via find_ord() / node_obj_to_node_index for membership-style checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cigamit cigamit merged commit dc5d9ea into main Mar 30, 2026
4 checks passed
@cigamit cigamit deleted the upstream16346 branch March 30, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup python Pull requests that update python code

Development

Successfully merging this pull request may close these issues.

3 participants