From 594e00e6424bf2f00ef555db0cd3d651070998fc Mon Sep 17 00:00:00 2001 From: James Cooke Date: Sun, 24 Sep 2023 14:40:49 +0100 Subject: [PATCH] Fix lint: change type check in test --- tests/checker/test_load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checker/test_load.py b/tests/checker/test_load.py index d0b666e..2b32b49 100644 --- a/tests/checker/test_load.py +++ b/tests/checker/test_load.py @@ -9,5 +9,5 @@ def test(checker) -> None: # TODO strip ignores assert len(checker.tree.body) == 1 # type: ignore - assert type(checker.tree.body[0]) == ast.Assert # type: ignore + assert isinstance(checker.tree.body[0], ast.Assert) assert len(checker.ast_tokens.tokens) == 8 # type: ignore