You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python encapsulation: the self._x = branch has no left boundary, myself._x = 1 counts as a private declaration #9454
Found by the SOP-002 gap-cell decoy suite (protocol SOP-002-v1, epic #8863).
Construct: the python encapsulation branch self\.(?!__\w+__[ \t]*=)_\w+[ \t]*=(?!=) has no left word boundary before self, so an attribute write on any variable whose name ends in self counts as a private-attribute declaration.
Snippet:myself._x = 1 Expected: 0 encapsulation hits (it is not a self._x = ... declaration; obj._x = 1 correctly reads 0). Actual: 1 hit.
Rule: gitgalaxy/standards/language_standards/languages/python.py, encapsulation (contract docs/encapsulation_rule_contract.md: only the declaration self._x = ... counts).
Locked in tests/decoys/test_decoy_python.py as xfail(strict=True).
Activity
tests/decoys: SOP-002 gap-cell decoy suites for python, typescript, j…