From a2e00ae305dda7e637792e1fd91e9aad3117e32e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Thu, 17 Oct 2024 10:49:19 +0200
Subject: [PATCH] fix

---
 docs/coding/typing.rst              | 2 +-
 tests/test_coding/test_sequences.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/coding/typing.rst b/docs/coding/typing.rst
index e5720192..2a687197 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/tests/test_coding/test_sequences.py b/tests/test_coding/test_sequences.py
index 66cb89d2..f9693c72 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)
 
-- 
GitLab