Skip to content
Snippets Groups Projects
Commit 9d5ea4d7 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Remove usage of typing_extensions

All our uses of it have been adopted upstream
parent 2b49f887
No related branches found
No related tags found
3 merge requests!206Draft: Migration to psycopg3,!201winery: try harder to record shards as mapped,!197Run the common objstorage test suite on winery
Pipeline #13347 passed
......@@ -5,7 +5,6 @@
click
deprecated
msgpack
typing-extensions >= 3.7.4
# seaweedfs backend
requests
# Copyright (C) 2021-2024 The Software Heritage developers
# Copyright (C) 2021-2025 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
......@@ -13,10 +13,9 @@ import stat
import subprocess
import time
from types import TracebackType
from typing import Callable, Dict, Iterable, Optional, Tuple, Type
from typing import Callable, Dict, Iterable, Literal, Optional, Tuple, Type
from systemd.daemon import notify
from typing_extensions import Literal
from swh.perfecthash import Shard, ShardCreator
......
......@@ -5,9 +5,18 @@
from datetime import timedelta
from typing import Any, Dict, FrozenSet, Iterable, Iterator, Optional, Tuple
from typing_extensions import Protocol, TypedDict, runtime_checkable
from typing import (
Any,
Dict,
FrozenSet,
Iterable,
Iterator,
Optional,
Protocol,
Tuple,
TypedDict,
runtime_checkable,
)
from swh.core.api import remote_api_endpoint
from swh.objstorage.constants import DEFAULT_LIMIT, LiteralHash, LiteralPrimaryHash
......
......@@ -9,11 +9,18 @@ from datetime import timedelta
import functools
from itertools import dropwhile, islice
import lzma
from typing import Callable, Dict, Iterable, Iterator, Literal, Optional, Tuple
from typing import (
Callable,
Dict,
Iterable,
Iterator,
Literal,
Optional,
Protocol,
Tuple,
)
import zlib
from typing_extensions import Protocol
from swh.core import statsd
from swh.model import hashutil
from swh.objstorage.constants import DEFAULT_LIMIT, ID_HASH_ALGO, LiteralPrimaryHash
......
# Copyright (C) 2021-2024 The Software Heritage developers
# Copyright (C) 2021-2025 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
......@@ -13,11 +13,10 @@ import os
import random
import sys
import time
from typing import Any, Dict, Optional, Set, Union
from typing import Any, Dict, Literal, Optional, Set, Union
import psycopg
import psycopg_pool
from typing_extensions import Literal
from swh.objstorage.backends.winery.objstorage import (
WineryObjStorage,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment