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

ReactiveX / RxPY / 24955473507
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/github-actions-d95291362f
DEFAULT BRANCH: master
Ran 26 Apr 2026 11:27AM UTC
Jobs 1
Files 414
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

26 Apr 2026 11:26AM UTC coverage: 93.519% (+0.003%) from 93.516%
24955473507

Pull #782

github

dbrattli
refactor(tests): replace type:ignore comments with proper type annotations

Builds on PR #782 to replace the `# type: ignore` suppressions with
real type annotations and structural fixes:

- Use `isinstance(value, OnError|OnNext)` to narrow `Recorded.value` instead
  of `# type: ignore[union-attr]` (test_average, test_elementat, test_reduce,
  test_toiterable).
- Properly annotate test-local `subscribe` functions with
  `ObserverBase[T] / SchedulerBase | None / DisposableBase` and return
  `Disposable()` so `reactivex.create(...)` accepts them without
  `# type: ignore[misc]/[arg-type]` (test_concat, test_observeon, test_map,
  test_skipuntil, test_while_do).
- Type `xs` as `list[ColdObservable[int] | None]` in test_defer instead of
  bare `[None]`, and add `assert xs[0] is not None` narrowing.
- Annotate `_raise` as `NoReturn` in test_map, test_retry, test_generate so
  the surrounding code type-checks without trailing dummy returns.
- Use a typed module-level seed in test_generate to widen `Literal[0]` to
  `int` so `lambda x: x + 1` matches `Mapper[int, int]`.
- `cast(Observable[int], s)` in test_tofuture instead of `# type: ignore`.

Also widens two clearly-incorrect public type signatures (the implementation
already supports the wider input):

- `delay()` and `delay_()` now accept `AbsoluteOrRelativeTime` instead of
  only `RelativeTime`. The implementation already branches on
  `isinstance(duetime, datetime)`, so this just makes the signature match
  reality and removes 5 `# type: ignore[arg-type]` in test_delay.
- `from_callback()` now returns `Callable[..., Observable[Any]]` instead of
  `Callable[[], Observable[Any]]`. The inner `function(*args)` already
  accepts arbitrary args, so this matches reality and removes 2
  `# type: ignore[call-arg]` in test_fromcallback.

Only `test_of.py:51` keeps a `# type: ignore[call-arg]` — it's in a
test that never runs (typo `teest_` in the name) and intentionally calls
`reactivex.of()` with a kwarg that d... (continued)
Pull Request #782: [Repo Assist] test: fix pyright strict-mode errors in tests/test_observable (batch 2)

93 of 94 new or added lines in 25 files covered. (98.94%)

1 existing line in 1 file now uncovered.

25368 of 27126 relevant lines covered (93.52%)

0.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
67.74
0.0% tests/test_observable/test_of.py

Coverage Regressions

Lines Coverage ∆ File
1
99.44
-0.56% tests/test_observable/test_debounce.py
Jobs
ID Job ID Ran Files Coverage
1 24955473507.1 26 Apr 2026 11:27AM UTC 414
93.52
GitHub Action Run
Source Files on build 24955473507
  • Tree
  • List 414
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #782
  • PR Base - master (#24926923816)
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