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

deepset-ai / haystack / 15062869495 / 1
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 16 May 2025 07:17AM UTC
Files 209
Run time 5s
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

16 May 2025 07:15AM UTC coverage: 90.445% (+0.002%) from 90.443%
15062869495.1

push

github

web-flow
fix: Improve typing of @component and allow TypedDict output types (#9396)

- Add type annotations to the `_Component.__call__` function that
  backs `@component`. This fixes "decorator ignored" warnings of
  Pyright in "strict" type-checking mode.

- Type-check that a `@component` class conforms to the `Component`
  protocol (i.e., that it has a `run()` method).

- Relax the `run()` return type required by the `Component` protocol
  from `Dict[str, Any]` to `Mapping[str, Any]`. The former is
  incompatible with `TypedDict`, which makes it impossible to
  type a component's precise outputs. `Mapping` fixes this because
  it is covariant, i.e. the value type may be more specific than
  `Any`.

10942 of 12098 relevant lines covered (90.44%)

0.9 hits per line

Source Files on job 15062869495.1
  • Tree
  • List 209
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15062869495
  • 954b0d10 on github
  • Prev Job for on main (#15048905430.1)
  • Next Job for on main (#15065181550.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc