pyrift v0.3.1 — CPY001 false positive fix
What changed
Fixed
- CPY001 false positive — dict view comparisons against
setand
frozensetare now correctly skipped. Only comparisons against
listandtupleare 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.