From 6624a436254997e8ee78f065fca61d2fc8f58c3f Mon Sep 17 00:00:00 2001 From: Brendon Smith Date: Sat, 2 Apr 2022 19:26:25 -0400 Subject: [PATCH] Drop `typing` import from `test_logging_conf.py` br3ndonland/inboard#36 Type annotations were updated for Python 3.10 in #36. This `from typing import Set` was added in #49 prior to merging #36, and was overlooked when merging the PR. This commit will replace `typing.Set` with a parametrized generic. https://peps.python.org/pep-0585/ https://docs.python.org/3/whatsnew/3.9.html --- tests/test_logging_conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_logging_conf.py b/tests/test_logging_conf.py index 764b0eb..67bc86d 100644 --- a/tests/test_logging_conf.py +++ b/tests/test_logging_conf.py @@ -1,6 +1,7 @@ +from __future__ import annotations + import os from pathlib import Path -from typing import Set import pytest from pytest_mock import MockerFixture @@ -194,7 +195,7 @@ def test_logging_filters( self, capfd: pytest.CaptureFixture, log_filters_input: str, - log_filters_output: Set[str], + log_filters_output: set[str], mocker: MockerFixture, monkeypatch: pytest.MonkeyPatch, ) -> None: