Repository navigation
Python bitwise_ops counts & and |, not type unions (Closes #8861) - #8914
Conversation
…unions (Closes #8861) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (6d48899) is not the one a maintainer labelled |
|
No description provided. |
|
PR #8914 @ 6d48899: 5 failed check(s) == equivalence-e2e (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
…ters Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
…ters Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
CI shepherd: the head of this PR (5875839) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Closes #8861
What changed
Python
bitwise_ops(languages/python.py) now counts the contract's&and|(a & b,a | b,m &= x,m |= x) besides<< >> ^ ~, and skips a| None/None |type union. Per the issue's corrections (2026-11-21), the string-literal counting is documented behaviour (#2535, rosetta string decoy) and a decision tracked in #8866, so it is unchanged; a test pins it as such.Class / Sibling gaps
Class: a
bitwise_opstext rule that drops the contract's and/or operators or counts type-union|. Member fixed here: python (tests: one function per case, 8 counted, 5 ignored, 1 pinned string case).Sibling gaps (none needed by a burned estate): embedded_python already counts
&/|but not the| Noneguard (rare in MicroPython; same regex shape, left to avoid overlap with open PR #8894); string/comment-content counting across yacc, zig, css, perl, php (decision, #8866); generic closing>>counted as a shift in generic-heavy languages (#8866);|in annotations that are notNoneunions (int | str) still counts, a text rule cannot tell them froma | b.Evidence
golden-lock.sh crucible_check.py --update --yes(both legs).scope_check.py --expect python: every drifted file is a.pyfile (the cpp/NVDA and fortran/wrf labels are corpus directories holding.pyfiles); drift = Bitwise Operations counts up, plus the function archetype / composition rollups they feed..py): old 0.024 s, new 0.171 s per full-text findall. Whole-scan CPU on rosetta/crucible not separately timed; the rule is a negligible share of a scan.bitwise_opscounts move, it needsrosetta:rebless-owed(the tick adds labels).pr_gates --fast9/9,--ratchets9 pass / 0 fail.🤖 Generated with Claude Code