Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/typing.py
# Copyright (C) 2020-2021 The Software Heritage developers | # Copyright (C) 2020-2022 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 | ||||
▲ Show 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | |||||
TResult = TypeVar("TResult") | TResult = TypeVar("TResult") | ||||
PagedResult = CorePagedResult[TResult, str] | PagedResult = CorePagedResult[TResult, str] | ||||
class SaveOriginRequestInfo(TypedDict): | class SaveOriginRequestInfo(TypedDict, total=False): | ||||
id: int | id: int | ||||
"""Unique key""" | """Unique key""" | ||||
save_request_date: str | save_request_date: str | ||||
"""Date of the creation request""" | """Date of the creation request""" | ||||
visit_type: str | visit_type: str | ||||
"""Type of the visit""" | """Type of the visit""" | ||||
visit_status: Optional[str] | visit_status: Optional[str] | ||||
"""Status of the visit""" | """Status of the visit""" | ||||
Show All 23 Lines |