mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-12-15 18:50:05 +01:00
build: misc updates to repo (#180)
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user