Skip to content
Snippets Groups Projects
Commit 5457e172 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

Merge branch 'develop'

parents fc9683fc f5fb01df
No related branches found
No related tags found
No related merge requests found
Pipeline #63331 passed with stages
in 2 minutes and 11 seconds
# v2.25.8
# v2.25.9
* fixed the modules page in documentation
* added choose_with_index
......
......@@ -21,7 +21,7 @@ They are as follows:
You may use these generics in your classes, eg.
::
.. code-block:: python
def enumerate(v: Iteratable[int]) -> int:
...
......
__version__ = '2.25.8'
__version__ = '2.25.9'
import typing as tp
from satella.coding.typing import Iteratable, Predicate, T
......
......@@ -15,7 +15,7 @@ class TestSequences(unittest.TestCase):
def test_check_with_index(self):
a = [1,2,3,4,5]
elem, i = choose_with_index(lambda a: a == 3)
elem, i = choose_with_index(lambda b: b == 3, a)
self.assertEqual(elem, 3)
self.assertEqual(i, 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment