From 1a9164fc8eab653ab08d3d76dfa6b7f780d2954c Mon Sep 17 00:00:00 2001 From: Antoine Lambert <anlambert@softwareheritage.org> Date: Fri, 6 May 2022 17:03:22 +0200 Subject: [PATCH] cookers/base: Fix sphinx >= 4.4 warning Fix "more than one target found for cross-reference 'ObjectType'" sphinx warning. --- swh/vault/cookers/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swh/vault/cookers/base.py b/swh/vault/cookers/base.py index db0b23f..2c974e8 100644 --- a/swh/vault/cookers/base.py +++ b/swh/vault/cookers/base.py @@ -12,6 +12,7 @@ from typing import ClassVar, Set from psycopg2.extensions import QueryCanceledError import sentry_sdk +import swh.model.swhids from swh.model.swhids import CoreSWHID, ObjectType from swh.storage.interface import StorageInterface @@ -61,7 +62,7 @@ class BaseVaultCooker(metaclass=abc.ABCMeta): - def cook(): cook the object into a bundle """ - SUPPORTED_OBJECT_TYPES: ClassVar[Set[ObjectType]] + SUPPORTED_OBJECT_TYPES: ClassVar[Set[swh.model.swhids.ObjectType]] BUNDLE_TYPE: ClassVar[str] def __init__( -- GitLab