Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/typing.py
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | class SnapshotReleaseInfo(TypedDict): | ||||
target_type: str | target_type: str | ||||
"""release target_type""" | """release target_type""" | ||||
url: Optional[str] | url: Optional[str] | ||||
"""optional browse URL (content, directory, ...) scoped to release""" | """optional browse URL (content, directory, ...) scoped to release""" | ||||
class SnapshotContext(TypedDict): | class SnapshotContext(TypedDict): | ||||
branch: Optional[str] | branch: Optional[str] | ||||
"""optional branch name set when browsing snapshot int that scope""" | """optional branch name set when browsing snapshot in that scope""" | ||||
branches: List[SnapshotBranchInfo] | branches: List[SnapshotBranchInfo] | ||||
"""list of snapshot branches (possibly truncated)""" | """list of snapshot branches (possibly truncated)""" | ||||
branches_url: str | branches_url: str | ||||
"""snapshot branches list browse URL""" | """snapshot branches list browse URL""" | ||||
is_empty: bool | is_empty: bool | ||||
"""indicates if the snapshot is empty""" | """indicates if the snapshot is empty""" | ||||
origin_info: Optional[OriginInfo] | origin_info: Optional[OriginInfo] | ||||
"""optional origin info associated to the snapshot""" | """optional origin info associated to the snapshot""" | ||||
origin_visits_url: Optional[str] | origin_visits_url: Optional[str] | ||||
"""optional origin visits URL""" | """optional origin visits URL""" | ||||
query_params: QueryParameters | query_params: QueryParameters | ||||
"""common query parameters when browsing snapshot content""" | """common query parameters when browsing snapshot content""" | ||||
release: Optional[str] | release: Optional[str] | ||||
"""optional release name set when browsing snapshot int that scope""" | """optional release name set when browsing snapshot in that scope""" | ||||
release_id: Optional[str] | release_id: Optional[str] | ||||
"""optional release identifier set when browsing snapshot int that scope""" | """optional release identifier set when browsing snapshot in that scope""" | ||||
releases: List[SnapshotReleaseInfo] | releases: List[SnapshotReleaseInfo] | ||||
"""list of snapshot releases (possibly truncated)""" | """list of snapshot releases (possibly truncated)""" | ||||
releases_url: str | releases_url: str | ||||
"""snapshot releases list browse URL""" | """snapshot releases list browse URL""" | ||||
revision_id: Optional[str] | revision_id: Optional[str] | ||||
"""optional revision identifier set when browsing snapshot int that scope""" | """optional revision identifier set when browsing snapshot in that scope""" | ||||
revision_info: Optional[Dict[str, Any]] | |||||
ardumont: snapshot `int` that?
into might be?
(it seems that the pattern `snapshot int that` exists in… | |||||
Done Inline ActionsGosh, I am the king of the typos these days. Thanks ! anlambert: Gosh, I am the king of the typos these days. Thanks ! | |||||
"""optional revision info set when browsing snapshot in that scope""" | |||||
root_directory: Optional[str] | root_directory: Optional[str] | ||||
"""optional root directory identifier set when browsing snapshot content""" | """optional root directory identifier set when browsing snapshot content""" | ||||
snapshot_id: str | snapshot_id: str | ||||
"""snapshot identifier""" | """snapshot identifier""" | ||||
snapshot_sizes: Dict[str, int] | snapshot_sizes: Dict[str, int] | ||||
"""snapshot sizes grouped by branch target type""" | """snapshot sizes grouped by branch target type""" | ||||
snapshot_swhid: str | snapshot_swhid: str | ||||
"""snapshot SWHID""" | """snapshot SWHID""" | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |
snapshot int that?
into might be?
(it seems that the pattern snapshot int that exists in multiple locations)