Commit 8a48b64d authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Import abstract generics from collections.abc (PEP 585)

parent d8c71f9b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
#  Copyright 2021,2022  Dominik Sekotill <dom.sekotill@kodo.org.uk>
#  Copyright 2021-2023  Dominik Sekotill <dom.sekotill@kodo.org.uk>
#
#  This Source Code Form is subject to the terms of the Mozilla Public
#  License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -14,12 +14,12 @@ import platform
import re
from abc import ABC
from abc import abstractmethod
from collections.abc import Iterator
from io import BytesIO
from pathlib import Path
from shutil import copyfileobj
from tarfile import TarFile
from typing import IO
from typing import Iterator

import requests
import xdg
+3 −3
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@ import hashlib
import ipaddress
import json
import logging
from collections.abc import Iterable
from collections.abc import Iterator
from collections.abc import MutableMapping
from contextlib import contextmanager
from enum import Enum
from os import PathLike
@@ -32,9 +35,6 @@ from types import TracebackType
from typing import IO
from typing import TYPE_CHECKING
from typing import Any
from typing import Iterable
from typing import Iterator
from typing import MutableMapping
from typing import NewType
from typing import Protocol
from typing import TypeVar
+1 −1
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@ Extensions for "requests"
from __future__ import annotations

import ipaddress
from collections.abc import Mapping
from typing import Any
from typing import Mapping
from urllib.parse import urlparse

import requests.adapters
+2 −2
Original line number Diff line number Diff line
#  Copyright 2021  Dominik Sekotill <dom.sekotill@kodo.org.uk>
#  Copyright 2021, 2023  Dominik Sekotill <dom.sekotill@kodo.org.uk>
#
#  This Source Code Form is subject to the terms of the Mozilla Public
#  License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -10,9 +10,9 @@ JSON classes for container types (objects and arrays)

from __future__ import annotations

from collections.abc import Callable
from types import GenericAlias
from typing import Any
from typing import Callable
from typing import TypeVar
from typing import overload

+2 −2
Original line number Diff line number Diff line
@@ -11,14 +11,14 @@ Management and control for MySQL database fixtures
from __future__ import annotations

import atexit
from collections.abc import Iterator
from collections.abc import Sequence
from importlib import resources
from os import environ
from pathlib import Path
from time import sleep
from typing import TYPE_CHECKING
from typing import ClassVar
from typing import Iterator
from typing import Sequence

from behave import fixture

Loading