build: misc updates to repo (#180)

This commit is contained in:
Talley Lambert
2023-08-16 12:08:13 -04:00
committed by GitHub
parent dd9af3bfed
commit 9ff01e757b
9 changed files with 20 additions and 60 deletions

View File

@@ -1,4 +1,3 @@
import sys
from typing import Any, Iterable
from unittest.mock import Mock
@@ -26,8 +25,7 @@ def test_slider_connect_works(qtbot):
def _assert_types(args: Iterable[Any], type_: type):
# sourcery skip: comprehension-to-generator
if sys.version_info >= (3, 8):
assert all(isinstance(v, type_) for v in args), "invalid type"
assert all(isinstance(v, type_) for v in args), "invalid type"
@pytest.mark.parametrize("cls", [QLabeledDoubleSlider, QLabeledSlider])

View File

@@ -1,5 +1,4 @@
import math
import sys
from itertools import product
from typing import Any, Iterable
from unittest.mock import Mock
@@ -218,8 +217,7 @@ def test_wheel(cls, orientation, qtbot):
def _assert_types(args: Iterable[Any], type_: type):
# sourcery skip: comprehension-to-generator
if sys.version_info >= (3, 8):
assert all(isinstance(v, type_) for v in args), "invalid type"
assert all(isinstance(v, type_) for v in args), "invalid type"
@pytest.mark.parametrize("cls, orientation", ALL_SLIDER_COMBOS)