diff --git a/tests/test_init.py b/tests/test_init.py index ac20526..2037c1a 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -465,7 +465,7 @@ def sample_monitors(self, setup): return deepcopy(setup[:2]) @pytest.mark.parametrize('field', default_identifiers) - def test_filters_duplicates_by_first_not_none_identifier(self, sample_monitors: list[dict], field: str, include=None): + def test_filters_duplicates_by_first_not_none_identifier(self, sample_monitors: List[dict], field: str, include=None): ''' There are 3 properties of a display we can use to identify it: edid, serial and name. EDID contains the serial and is the most unique. Two monitors with the same edid are @@ -529,13 +529,13 @@ def test_filters_duplicates_by_first_not_none_identifier(self, sample_monitors: ) @pytest.mark.parametrize('field', [default_identifiers[-1], 'extra']) - def test_include_kwarg_acts_as_identifier_when_filtering_duplicates(self, sample_monitors: list[dict], field: str): + def test_include_kwarg_acts_as_identifier_when_filtering_duplicates(self, sample_monitors: List[dict], field: str): for item in sample_monitors: item['extra'] = '12345' self.test_filters_duplicates_by_first_not_none_identifier(sample_monitors, field, [field]) - def test_include_kwarg_can_identify_displays(self, sample_monitors: list[dict]): + def test_include_kwarg_can_identify_displays(self, sample_monitors: List[dict]): for item in sample_monitors: for field in self.default_identifiers: del item[field] diff --git a/tests/test_linux.py b/tests/test_linux.py index ee13154..f44cb8e 100644 --- a/tests/test_linux.py +++ b/tests/test_linux.py @@ -130,7 +130,7 @@ def method(self): return linux.I2C class TestGetDisplayInfo(BrightnessMethodTest.TestGetDisplayInfo): - def test_returned_dicts_contain_required_keys(self, method: type[BrightnessMethod]): + def test_returned_dicts_contain_required_keys(self, method: Type[BrightnessMethod]): return super().test_returned_dicts_contain_required_keys(method, {'i2c_bus': str}) def test_display_filtering(self, mocker: MockerFixture, original_os_module, method):