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

fix

parent 779b7605
No related branches found
No related tags found
No related merge requests found
Pipeline #63329 passed with stages
in 2 minutes and 3 seconds
...@@ -21,7 +21,7 @@ They are as follows: ...@@ -21,7 +21,7 @@ They are as follows:
You may use these generics in your classes, eg. You may use these generics in your classes, eg.
:: .. code-block:: python
def enumerate(v: Iteratable[int]) -> int: def enumerate(v: Iteratable[int]) -> int:
... ...
......
...@@ -15,7 +15,7 @@ class TestSequences(unittest.TestCase): ...@@ -15,7 +15,7 @@ class TestSequences(unittest.TestCase):
def test_check_with_index(self): def test_check_with_index(self):
a = [1,2,3,4,5] 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(elem, 3)
self.assertEqual(i, 2) 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