We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc2771f commit 973c476Copy full SHA for 973c476
1 file changed
tutorial/tests/test_functional_programming.py
@@ -38,7 +38,7 @@ def reference_filter_even(my_list: List[int]) -> List[int]:
38
)
39
def test_filter_even(function_to_test: Callable, my_list: List[int]):
40
res = function_to_test(my_list)
41
- assert type(res) == list, "The function you wrote does not return a list"
+ assert isinstance(res, list), "The function you wrote does not return a list"
42
assert res == reference_filter_even(
43
my_list
44
), "The list you return is not equal to the expected solution"
0 commit comments