Skip to content

Commit 761b4f5

Browse files
committed
chore(ruff): Fix typings
tests/legacy_api/test_common.py:116:12: E721 Do not compare types, use `isinstance()` tests/legacy_api/test_common.py:117:12: E721 Do not compare types, use `isinstance()` tests/legacy_api/test_common.py:118:12: E721 Do not compare types, use `isinstance()` tests/test_common.py:115:12: E721 Do not compare types, use `isinstance()` tests/test_common.py:116:12: E721 Do not compare types, use `isinstance()` tests/test_common.py:117:12: E721 Do not compare types, use `isinstance()`
1 parent fd073da commit 761b4f5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/legacy_api/test_common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ def test_ignores_letter_versions(monkeypatch: pytest.MonkeyPatch) -> None:
113113
assert result
114114

115115
# Should not throw
116-
assert type(has_version("1.8")) is bool
117-
assert type(has_version("1.8a")) is bool
118-
assert type(has_version("1.9a")) is bool
116+
assert isinstance(has_version("1.8"), bool)
117+
assert isinstance(has_version("1.8a"), bool)
118+
assert isinstance(has_version("1.9a"), bool)
119119

120120

121121
def test_error_version_less_1_7(monkeypatch: pytest.MonkeyPatch) -> None:

tests/test_common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def test_ignores_letter_versions(monkeypatch: pytest.MonkeyPatch) -> None:
112112
assert result
113113

114114
# Should not throw
115-
assert type(has_version("1.8")) is bool
116-
assert type(has_version("1.8a")) is bool
117-
assert type(has_version("1.9a")) is bool
115+
assert isinstance(has_version("1.8"), bool)
116+
assert isinstance(has_version("1.8a"), bool)
117+
assert isinstance(has_version("1.9a"), bool)
118118

119119

120120
def test_error_version_less_1_7(monkeypatch: pytest.MonkeyPatch) -> None:

0 commit comments

Comments
 (0)