From 71598aac8f1c2f3f97b5ca4525df531f2428d946 Mon Sep 17 00:00:00 2001 From: Kate Case Date: Mon, 30 Oct 2023 09:36:16 -0400 Subject: [PATCH] type == -> isinstance These were specifically called out, though I don't know why. E721 now also fails on these lines, so it has been switched to isinstance. --- tests/unit/version_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/version_test.py b/tests/unit/version_test.py index c92d68852..2bb83d6c7 100644 --- a/tests/unit/version_test.py +++ b/tests/unit/version_test.py @@ -19,10 +19,10 @@ def test_dunder_version(): def test_dunder_version_info(): """Check that the version info tuple looks legitimate.""" - assert type(__version_info__) == tuple # noqa: WPS516 + assert isinstance(__version_info__, tuple) assert len(__version_info__) >= 3 assert all( - type(digit) == int # noqa: WPS516 + isinstance(digit, int) for digit in __version_info__[:2] )