• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / RestrictedPython / 36334361621
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: feature/explicit-deny-visitors
DEFAULT BRANCH: master
Ran 27 Sep 2026 05:32PM UTC
Jobs 1
Files 63
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Sep 2026 04:44PM UTC coverage: 100.0%. Remained the same
36334361621

Pull #332

github

loechel
feat: deny every ast node explicitly with a documented reason

"Explicit is better than implicit." (PEP 20)

Every ast node of the supported Python versions now has an explicit
visit_<node> method in RestrictingNodeTransformer. generic_visit stays
the safety net for nodes of new Python versions nobody has reviewed yet;
it is no longer the place where the decision about a known language
feature is recorded.

- Deny explicitly the nodes which were only denied by generic_visit:
  AnnAssign, Match with all pattern nodes and match_case, TypeAlias,
  TypeVar, ParamSpec, TypeVarTuple, FunctionType and TypeIgnore.
- Explain in the docstring of every denying method why the node is
  denied and which guard or check it would bypass; also for the
  existing ones (Nonlocal, TryStar, async).
- Add tests which allow the pattern nodes and show the bypasses:
  class, mapping and sequence patterns access the subject without
  _getattr_, _getitem_ and _getiter_; capture names escape the check
  for a leading underscore.
- Add a test which fails for every ast node of the running Python
  without a visit_<node> method.
- Replace the open "Option 1 / Option 2" todo in the contributing
  documentation by the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #332: feat: deny every ast node explicitly with a documented reason (PEP 20)

232 of 232 branches covered (100.0%)

136 of 136 new or added lines in 2 files covered. (100.0%)

2884 of 2884 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36334361621.1 27 Sep 2026 05:33PM UTC 63
100.0
GitHub Action Run
Source Files on build 36334361621
  • Tree
  • List 63
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #332
  • PR Base - master (#34938226313)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc