Run pyupgrade --py39-plus on all files
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from collections.abc import Iterator
|
||||
from itertools import chain
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Callable
|
||||
from typing import Iterator
|
||||
|
||||
|
||||
def visit_path(
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
from enum import auto
|
||||
from enum import Enum
|
||||
from queue import Empty
|
||||
from queue import Queue
|
||||
import sys
|
||||
from typing import Any
|
||||
from typing import Sequence
|
||||
import warnings
|
||||
|
||||
import execnet
|
||||
|
||||
@@ -9,12 +9,12 @@ the controlling process which should best never happen.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
import os
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import time
|
||||
from typing import Any
|
||||
from typing import Sequence
|
||||
|
||||
from _pytest._io import TerminalWriter
|
||||
import execnet
|
||||
@@ -158,9 +158,9 @@ def repr_pytest_looponfailinfo(
|
||||
|
||||
|
||||
def init_worker_session(
|
||||
channel: "execnet.Channel", # noqa: UP037
|
||||
channel: execnet.Channel,
|
||||
args: list[str],
|
||||
option_dict: dict[str, "Any"], # noqa: UP037
|
||||
option_dict: dict[str, Any],
|
||||
) -> None:
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -14,9 +14,9 @@ must be taken in plugins in case ``xdist`` is not installed. Please see:
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
import os
|
||||
from typing import Any
|
||||
from typing import Sequence
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import execnet
|
||||
|
||||
@@ -9,16 +9,16 @@ needs not to be installed in remote environments.
|
||||
from __future__ import annotations
|
||||
|
||||
import collections
|
||||
from collections.abc import Generator
|
||||
from collections.abc import Iterable
|
||||
from collections.abc import Sequence
|
||||
import contextlib
|
||||
import enum
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from typing import Any
|
||||
from typing import Generator
|
||||
from typing import Iterable
|
||||
from typing import Literal
|
||||
from typing import Sequence
|
||||
from typing import TypedDict
|
||||
from typing import Union
|
||||
import warnings
|
||||
@@ -98,7 +98,7 @@ class TestQueue:
|
||||
self._items = collections.deque(iterable)
|
||||
|
||||
@contextlib.contextmanager
|
||||
def lock(self) -> Generator[collections.deque[Item], None, None]:
|
||||
def lock(self) -> Generator[collections.deque[Item]]:
|
||||
with self._lock:
|
||||
try:
|
||||
yield self._items
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
from difflib import unified_diff
|
||||
from typing import Sequence
|
||||
|
||||
|
||||
def report_collection_diff(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
from itertools import cycle
|
||||
from typing import Sequence
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Sequence
|
||||
from typing import NoReturn
|
||||
from typing import Sequence
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
from typing import Protocol
|
||||
from typing import Sequence
|
||||
|
||||
from xdist.workermanage import WorkerController
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
from typing import NamedTuple
|
||||
from typing import Sequence
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
import enum
|
||||
import fnmatch
|
||||
import os
|
||||
@@ -9,7 +10,6 @@ import sys
|
||||
from typing import Any
|
||||
from typing import Callable
|
||||
from typing import Literal
|
||||
from typing import Sequence
|
||||
from typing import Union
|
||||
import uuid
|
||||
import warnings
|
||||
|
||||
Reference in New Issue
Block a user