← Back to Pull requests

Add Enum dunder to the list of allowed dunder #10722

Closed
unknown closed this pull request without merging on Nov 08, 2025 07:59 UTC
View on GitHub
unknown unknown commented on Nov 04, 2025 17:42 UTC
Author

<!--
Thank you for submitting a PR to pylint!

To ease the process of reviewing your PR, do make sure to complete the following boxes.

  • Document your change, if it is a non-trivial one.

  • - A maintainer might label the issue `skip-news if the change does not need to be in the changelog.
    - Otherwise, create a news fragment with
    towncrier create <IssueNumber>.<type> which will be
    included in the changelog.
    <type> can be one of the types defined in ./towncrier.toml.
    If necessary you can write details or offer examples on how the new change is supposed to work.
    - Generating the doc is done with
    tox -e docs
  • Relate your change to an issue in the tracker if such an issue exists

  • Write comprehensive commit messages and/or a good description of what the PR does.

  • Keep the change small, separate the consensual changes from the opinionated one.

  • Don't hesitate to open multiple PRs if the change requires it. If your review is so
    big it requires to actually plan and allocate time to review, it's more likely
    that it's going to go stale.
  • If you used multiple emails or multiple names when contributing, add your mails

  • and preferred name in
    script/.contributors_aliases.json
    -->

    Type of Changes

    <!-- Leave the corresponding lines for the applicable type of change: -->

    | | Type |
    | --- | ---------------------- |
    | ✓ | :bug: Bug fix |

    Description

    Add a few missing dunder in the Enum class to the allowed list. Also convert EXTRA_DUNDER_METHODS` to a dictionary with Python version.

    <!-- If this PR fixes an issue, use the following to automatically close when we merge: -->

    Closes #10435

    Diff: 218 lines (+163 / -55) across 2 files Reviewer: tqa236 Review duration: 5176m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 218 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.322
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10722"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.7% (MEDIUM) · Higher = larger blast radius
    36.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.5% · Safe to merge
    14.5%