Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/typing.py
# Copyright (C) 2020-2021 The Software Heritage developers | # Copyright (C) 2020-2021 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from typing import Any, Dict, List, Optional, TypeVar, Union | from typing import Any, Dict, List, Optional, TypeVar, Union | ||||
from typing_extensions import TypedDict | from typing_extensions import TypedDict | ||||
from django.http import QueryDict | from django.http import QueryDict | ||||
from swh.core.api.classes import PagedResult as CorePagedResult | from swh.core.api.classes import PagedResult as CorePagedResult | ||||
from swh.model.identifiers import ObjectType | from swh.model.swhids import ObjectType | ||||
QueryParameters = Union[Dict[str, Any], QueryDict] | QueryParameters = Union[Dict[str, Any], QueryDict] | ||||
class OriginInfo(TypedDict): | class OriginInfo(TypedDict): | ||||
url: str | url: str | ||||
"""URL of the origin""" | """URL of the origin""" | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |