Skip to content

pyrift v0.3.1 — CPY001 false positive fix

Choose a tag to compare

@BHUVANSH855 BHUVANSH855 released this 24 Aug 11:23
· 52 commits to main since this release

What changed

Fixed

  • CPY001 false positive — dict view comparisons against set and
    frozenset are now correctly skipped. Only comparisons against
    list and tuple are flagged.
  • Rule description updated to clarify the actual risk pattern.

Tests

  • 3 new tests added covering the false positive cases
  • Total: 70 tests passing

Install

pip install pyrift==0.3.1

Upgrade

pip install --upgrade pyrift


Bug reported by @fix error on Python Discord within 22 minutes
of the v0.3.0 launch. Thanks for the sharp feedback.