Skip to content

Commit 973c476

Browse files
authored
Fix the pre-commit checks (#151)
1 parent bc2771f commit 973c476

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tutorial/tests/test_functional_programming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def reference_filter_even(my_list: List[int]) -> List[int]:
3838
)
3939
def test_filter_even(function_to_test: Callable, my_list: List[int]):
4040
res = function_to_test(my_list)
41-
assert type(res) == list, "The function you wrote does not return a list"
41+
assert isinstance(res, list), "The function you wrote does not return a list"
4242
assert res == reference_filter_even(
4343
my_list
4444
), "The list you return is not equal to the expected solution"

0 commit comments

Comments
 (0)