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

source-academy / py-slang / 43393634925
88%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 08:46AM UTC
Jobs 1
Files 225
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

13 Nov 2026 08:29AM UTC coverage: 88.023% (-0.03%) from 88.05%
43393634925

push

github

web-flow
Typed Python §4: both operands of and/or must be bools (#663)

* Typed Python §4: both operands of and/or must be bools

Pyright validates conditions but not the operands of and/or. The build now
adds the two calls to the checker's visitBinaryOperation, so that a non-bool
operand on either side is an error and a and b has the type bool. The engines
are unchanged: the right operand is still not checked when a program runs
(tail calls), so the checker is its only guard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Typed Python §4: a condition without a bool __bool__ is an error

_validateConditionalIsBool accepted a value with no __bool__ (a Pair, a function, an object)
as always true, so if p:, not p and p and True passed. The patch now rejects such a type,
for conditions and for the operands of and/or alike.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

7661 of 9169 branches covered (83.55%)

Branch coverage included in aggregate %.

2 of 16 new or added lines in 2 files covered. (12.5%)

15887 of 17583 relevant lines covered (90.35%)

252036.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
86.5
-8.09% src/typecheck/bundler/bundle.ts
1
39.51
-0.49% src/typecheck/bundler/typed4.ts
Jobs
ID Job ID Ran Files Coverage
1 43393634925.1 13 Nov 2026 08:46AM UTC 225
88.02
GitHub Action Run
Source Files on build 43393634925
  • Tree
  • List 225
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43393634925
  • c0a8dfd9 on github
  • Prev Build on main (#43127143801)
  • Next Build on main (#45467495333)
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