Skip to content

Commit

Permalink
type == -> isinstance
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Qalthos committed Oct 30, 2023
1 parent 8595aac commit 71598aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/version_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)

Expand Down

0 comments on commit 71598aa

Please sign in to comment.