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

deepset-ai / haystack / 22908162088
93%

Build:
DEFAULT BRANCH: main
Ran 10 Mar 2026 02:45PM UTC
Jobs 1
Files 257
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

10 Mar 2026 02:42PM UTC coverage: 92.85% (+0.006%) from 92.844%
22908162088

push

github

web-flow
Fix str incorrectly validating as list[str] in ConditionalRouter (#10766)

* Fix str incorrectly validating as list[str] in ConditionalRouter

Two issues fixed in _output_matches_type():

1. A plain str value incorrectly passes validation for list[str]
   because str is a Sequence in Python. Added an explicit check to
   exclude str and bytes before the Sequence isinstance check.

2. Removed duplicate dead code block (second `if origin is None`
   check) that was unreachable after the Sequence handling.

Signed-off-by: JiangNan <1394485448@qq.com>

* Add test for str not matching list[str] in ConditionalRouter

Verifies that a plain str value is correctly rejected when the expected
output type is list[str], preventing false validation passes.

Signed-off-by: JiangNan <1394485448@qq.com>

* Add release note for str/list[str] validation fix

Signed-off-by: JiangNan <1394485448@qq.com>

* adding release notes

* formatting

* fixing release notes

* fixing release notes inline code

* fixing release notes inline code

* fixing release notes inline code

* removing duplicated release notes and fixing already existing ones

---------

Signed-off-by: JiangNan <1394485448@qq.com>
Co-authored-by: David S. Batista <dsbatista@gmail.com>

15636 of 16840 relevant lines covered (92.85%)

0.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
95.09
0.61% components/routers/conditional_router.py
Jobs
ID Job ID Ran Files Coverage
1 22908162088.1 10 Mar 2026 02:45PM UTC 257
92.85
GitHub Action Run
Source Files on build 22908162088
  • Tree
  • List 257
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22908162088
  • b7841a2c on github
  • Prev Build on main (#22899603447)
  • Next Build on main (#22941060896)
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

© 2026 Coveralls, Inc