Skip to content

Commit

Permalink
Drop typing import from test_logging_conf.py
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
br3ndonland committed Apr 2, 2022
1 parent b1a6855 commit 6624a43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_logging_conf.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6624a43

Please sign in to comment.