diff --git a/CHANGELOG.md b/CHANGELOG.md index b8e0518e0fdacd6f62834f429abd3a0266fe105f..3c4863eb8e2e3f74ea38c5335bb627661ed9b121 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# v2.25.8 +# v2.25.9 * fixed the modules page in documentation * added choose_with_index diff --git a/docs/coding/typing.rst b/docs/coding/typing.rst index e57201923e551c1ac0f0ba5ad1f5e74c3c8a62da..2a687197d647d17b2b8bc4b062420386083029b2 100644 --- a/docs/coding/typing.rst +++ b/docs/coding/typing.rst @@ -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: ... diff --git a/satella/__init__.py b/satella/__init__.py index 0450941b614d9446dffca23e50803dbec64f8b07..367b1f98efdf0caafe19cf3307eaec0d7d80ae50 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.25.8' +__version__ = '2.25.9' diff --git a/satella/coding/sequences/choose.py b/satella/coding/sequences/choose.py index 38c22fc99baff320d9c3122ee3aa414e37d307a1..2ff632f6a35c94e532c2ca2887de43e697f40192 100644 --- a/satella/coding/sequences/choose.py +++ b/satella/coding/sequences/choose.py @@ -1,3 +1,4 @@ +import typing as tp from satella.coding.typing import Iteratable, Predicate, T diff --git a/tests/test_coding/test_sequences.py b/tests/test_coding/test_sequences.py index 66cb89d22f303b9be39c9732a8fb467e0ecaff97..f9693c725699dffad75541ac669d0f489619698e 100644 --- a/tests/test_coding/test_sequences.py +++ b/tests/test_coding/test_sequences.py @@ -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)