diff options
Diffstat (limited to 'tests/unit/config/test_configtypes.py')
-rw-r--r-- | tests/unit/config/test_configtypes.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index 710018604..40ba3a3f3 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -26,7 +26,7 @@ import warnings import inspect import functools -import attr +import dataclasses import pytest import hypothesis from hypothesis import strategies @@ -1350,14 +1350,14 @@ class TestQssColor: klass().to_py(val) -@attr.s +@dataclasses.dataclass class FontDesc: - style = attr.ib() - weight = attr.ib() - pt = attr.ib() - px = attr.ib() - family = attr.ib() + style: QFont.Style + weight: QFont.Weight + pt: int + px: int + family: str class TestFont: |