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

deepset-ai / haystack / 15062869495
92%

Build:
DEFAULT BRANCH: main
Ran 16 May 2025 07:17AM UTC
Jobs 1
Files 209
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

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

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

Uncovered Existing Lines

Lines Coverage ∆ File
2
98.91
0.01% core/component/component.py
Jobs
ID Job ID Ran Files Coverage
1 15062869495.1 16 May 2025 07:17AM UTC 209
90.44
GitHub Action Run
Source Files on build 15062869495
  • Tree
  • List 209
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15062869495
  • 954b0d10 on github
  • Prev Build on main (#15048905430)
  • Next Build on main (#15065181550)
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