added Randomized algorithms #15361
Annotations
10 errors
|
Ruff (UP047):
randomized_algorithms/reservoir_sampling.py#L7
randomized_algorithms/reservoir_sampling.py:7:5: UP047 Generic function `reservoir_sampling` should use type parameters
|
|
Ruff (UP035):
randomized_algorithms/reservoir_sampling.py#L2
randomized_algorithms/reservoir_sampling.py:2:1: UP035 `typing.List` is deprecated, use `list` instead
|
|
Ruff (UP035):
randomized_algorithms/reservoir_sampling.py#L2
randomized_algorithms/reservoir_sampling.py:2:1: UP035 Import from `collections.abc` instead: `Iterator`
|
|
Ruff (I001):
randomized_algorithms/reservoir_sampling.py#L1
randomized_algorithms/reservoir_sampling.py:1:1: I001 Import block is un-sorted or un-formatted
|
|
Ruff (INP001):
randomized_algorithms/reservoir_sampling.py#L1
randomized_algorithms/reservoir_sampling.py:1:1: INP001 File `randomized_algorithms/reservoir_sampling.py` is part of an implicit namespace package. Add an `__init__.py`.
|
|
Ruff (UP006):
randomized_algorithms/randomized_quicksort.py#L5
randomized_algorithms/randomized_quicksort.py:5:45: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP006):
randomized_algorithms/randomized_quicksort.py#L5
randomized_algorithms/randomized_quicksort.py:5:31: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP035):
randomized_algorithms/randomized_quicksort.py#L2
randomized_algorithms/randomized_quicksort.py:2:1: UP035 `typing.List` is deprecated, use `list` instead
|
|
Ruff (INP001):
randomized_algorithms/randomized_quicksort.py#L1
randomized_algorithms/randomized_quicksort.py:1:1: INP001 File `randomized_algorithms/randomized_quicksort.py` is part of an implicit namespace package. Add an `__init__.py`.
|
|
Ruff (INP001):
randomized_algorithms/miller_rabin_primality test.py#L1
randomized_algorithms/miller_rabin_primality test.py:1:1: INP001 File `randomized_algorithms/miller_rabin_primality test.py` is part of an implicit namespace package. Add an `__init__.py`.
|