Skip to content

Add Reservoir Sampling algorithm for random selection from data streams #15091

Add Reservoir Sampling algorithm for random selection from data streams

Add Reservoir Sampling algorithm for random selection from data streams #15091

Triggered via pull request October 9, 2025 17:05
Status Failure
Total duration 9s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
ruff
Process completed with exit code 1.
Ruff (UP006): other/reservoir_sampling.py#L24
other/reservoir_sampling.py:24:56: UP006 Use `list` instead of `List` for type annotation
Ruff (UP047): other/reservoir_sampling.py#L24
other/reservoir_sampling.py:24:5: UP047 Generic function `reservoir_sampling` should use type parameters
Ruff (UP035): other/reservoir_sampling.py#L19
other/reservoir_sampling.py:19:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (UP035): other/reservoir_sampling.py#L19
other/reservoir_sampling.py:19:1: UP035 Import from `collections.abc` instead: `Iterable`