From 1dc690a381cb7cf0ea43a578b0b085d4ada1de5e Mon Sep 17 00:00:00 2001 From: Michael Ekstrand Date: Tue, 30 Jul 2024 15:08:29 -0400 Subject: [PATCH] suppress warnings for type checks on colone --- lenskit/tests/test_fallback.py | 2 +- lenskit/tests/test_util.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lenskit/tests/test_fallback.py b/lenskit/tests/test_fallback.py index 32f397ea6..19851539b 100644 --- a/lenskit/tests/test_fallback.py +++ b/lenskit/tests/test_fallback.py @@ -71,7 +71,7 @@ def test_fallback_clone(ml_ds): assert clone is not algo for a1, a2 in zip(algo.algorithms, clone.algorithms): assert a1 is not a2 - assert type(a2) == type(a1) + assert type(a2) == type(a1) # noqa: E721 def test_fallback_predict(ml_ratings, ml_ds): diff --git a/lenskit/tests/test_util.py b/lenskit/tests/test_util.py index 34d408998..606860031 100644 --- a/lenskit/tests/test_util.py +++ b/lenskit/tests/test_util.py @@ -100,4 +100,4 @@ def func(foo): def test_clone_core_obj(obj): o2 = lku.clone(obj) assert o2 == obj - assert type(o2) == type(obj) + assert type(o2) == type(obj) # noqa: E721