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

Qiskit / rustworkx / 29713529692
95%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 03:08AM UTC
Jobs 1
Files 118
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

20 Jul 2026 02:33AM UTC coverage: 94.68%. Remained the same
29713529692

push

github

web-flow
Fix graphviz_draw return type annotation and docstring (PIL.Image -> PIL.Image.Image) (#1637)

* Fix graphviz_draw return type annotation and docstring

graphviz_draw was annotated and documented as returning the PIL.Image
module instead of the PIL.Image.Image class. Because graphviz.py does
`from PIL import Image`, `Image` is the module, so `-> Image | None`
annotated the return with a module rather than the image class.

Correct the runtime annotation to `Image.Image | None` and the
`:returns:`/`:rtype:` docstring to `PIL.Image.Image`. The stub
(graphviz.pyi) already imported the class and was correct, so it is
left unchanged.

Add tests/visualization/test_graphviz_typing.py with two guards:
- a runtime check (get_type_hints + docstring) for the implementation,
  which is what actually regressed here since the stub shadows the
  implementation for static type checkers; and
- a static assert_type check for every stub overload, wired into the
  `stubs` nox session via mypy.

Fixes #1357

* Remove poorly written tests and keep release notes minimal

---------

Co-authored-by: Ivan Carvalho <ivancarvalho@gatech.edu>

19219 of 20299 relevant lines covered (94.68%)

914260.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29713529692.1 20 Jul 2026 03:08AM UTC 118
94.68
GitHub Action Run
Source Files on build 29713529692
  • Tree
  • List 118
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29713529692
  • e44a6750 on github
  • Prev Build on gh-readonly-queue/main/pr-1641-5ff5a9f762899338c3364ab5d637a30c654d9277 (#29711773903)
  • Next Build on main (#29892159860)
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