← Back to Pull requests

Replace deprecated `@abc.abstractproperty` with `@property` #14099

Closed
unknown closed this pull request without merging on Jun 22, 2026 18:23 UTC
View on GitHub
unknown unknown commented on Jun 22, 2026 11:11 UTC
Author

<!---
Thank you for your soon to be pull request. Before you submit this, please
double check to make sure that you've added a news file fragment. In pip we
generate our NEWS.rst from multiple news fragment files, and all pull requests
require either a news file fragment or a marker to indicate they don't require
one.

To read more about adding a news file fragment for your PR, please check out
our documentation at: https://pip.pypa.io/en/latest/development/contributing/#news-entries
-->

Python 3.16 has deprecated the abc.abstractproperty decorator, which was soft-deprecated since 3.3 and it now raises a warning when installing with Python 3.16 (built from CPython main):

❯ ./python.exe -m pip install pip
/Users/hugo/.local/lib/python3.16/site-packages/pip/_internal/distributions/base.py:36: DeprecationWarning: 'abc.abstractproperty' is deprecated and slated for removal in Python 3.21
  @abc.abstractproperty
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /Users/hugo/.local/lib/python3.16/site-packages (26.1.2)

@property can be used instead for all versions supported by pip:

https://docs.python.org/3.16/whatsnew/3.16.html#deprecated
https://docs.python.org/3.16/library/abc.html#abc.abstractproperty

  • https://docs.python.org/3.10/library/abc.html#abc.abstractproperty
  • Does this need a news entry?

    Diff: 180 lines (+135 / -45) across 2 files Reviewer: 2ykwang Review duration: 432m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 180 lines diff across 2 files
    0.36
    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.311
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #14099"
    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: 35.5% (MEDIUM) · Higher = larger blast radius
    35.5%
    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% · Safe to merge
    14%
    Repository