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

agronholm / typeguard / 30042551601
95%

Build:
DEFAULT BRANCH: master
Ran 23 Jul 2026 08:33PM UTC
Jobs 1
Files 12
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

23 Jul 2026 08:32PM UTC coverage: 94.652%. Remained the same
30042551601

push

github

web-flow
Do not erase a meaningful empty tuple[()] subscript in the transformer (#565)

The AST transformer erased a subscript when all its items resolved to Any, using `all(item is None for item in items)`. For `tuple[()]` the slice is an empty tuple, so `items` is empty and `all([])` is vacuously True — the transformer rewrote `tuple[()]` down to bare `tuple`, discarding the empty-tuple constraint. Both the import hook and @typechecked (which share the transformer) then accepted any tuple for a `tuple[()]` annotation, while check_type — which does not go through the transformer — correctly rejected it. Guard the erasure with `items and ...` so an empty subscript is preserved.

Signed-off-by: chuenchen309 <48723787+chuenchen309@users.noreply.github.com>

* Added missing PR link

---------

Signed-off-by: chuenchen309 <48723787+chuenchen309@users.noreply.github.com>

1 of 1 new or added line in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

1646 of 1739 relevant lines covered (94.65%)

6.53 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.49
0.0% src/typeguard/_transformer.py
Jobs
ID Job ID Ran Files Coverage
1 30042551601.1 23 Jul 2026 08:33PM UTC 12
94.65
GitHub Action Run
Source Files on build 30042551601
  • Tree
  • List 12
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30042551601
  • a319de1d on github
  • Prev Build on master (#30036939124)
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