Run pyupgrade --py39-plus on all files

This commit is contained in:
Bruno Oliveira
2024-12-07 08:46:25 -03:00
parent 6dc8c2a66d
commit 475b346fd9
15 changed files with 21 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
from __future__ import annotations
from collections.abc import Generator
import shutil
from typing import Callable
from typing import Generator
import execnet
import pytest
@@ -12,7 +12,7 @@ pytest_plugins = "pytester"
@pytest.fixture(autouse=True)
def _divert_atexit(monkeypatch: pytest.MonkeyPatch) -> Generator[None, None, None]:
def _divert_atexit(monkeypatch: pytest.MonkeyPatch) -> Generator[None]:
import atexit
finalizers = []

View File

@@ -1,8 +1,8 @@
from __future__ import annotations
from collections.abc import Sequence
from typing import Any
from typing import cast
from typing import Sequence
from typing import TYPE_CHECKING
import execnet

View File

@@ -7,7 +7,6 @@ import sys
from typing import Any
from typing import Callable
from typing import cast
from typing import Dict
from typing import Union
import uuid
@@ -90,7 +89,7 @@ def worker(request: pytest.FixtureRequest, pytester: pytest.Pytester) -> WorkerS
class TestWorkerInteractor:
UnserializerReport = Callable[
[Dict[str, Any]], Union[pytest.CollectReport, pytest.TestReport]
[dict[str, Any]], Union[pytest.CollectReport, pytest.TestReport]
]
@pytest.fixture