From b58f362b0f8bf0bb4a1026886f3df514ca43ec73 Mon Sep 17 00:00:00 2001 From: Cedric Serfon Date: Tue, 7 Mar 2023 13:25:57 +0100 Subject: [PATCH] Fix type annotation --- lib/rucio/api/did.py | 2 +- lib/rucio/client/didclient.py | 4 ++-- lib/rucio/core/did.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rucio/api/did.py b/lib/rucio/api/did.py index 7c6105e692..99d4e4f337 100644 --- a/lib/rucio/api/did.py +++ b/lib/rucio/api/did.py @@ -31,7 +31,7 @@ from typing import Any, Optional, List, Iterator from sqlalchemy.orm import Session - DIDListType = List[DIDType] + DIDListType = List[Dict] @stream_session diff --git a/lib/rucio/client/didclient.py b/lib/rucio/client/didclient.py index d103722dec..1f587a04b2 100644 --- a/lib/rucio/client/didclient.py +++ b/lib/rucio/client/didclient.py @@ -342,7 +342,7 @@ def list_content_history(self, scope, name): exc_cls, exc_msg = self._get_exception(headers=r.headers, status_code=r.status_code, data=r.content) raise exc_cls(exc_msg) - def list_files(self, scope: str, name: str, long: bool = False) -> "Iterator[DIDType]": + def list_files(self, scope: str, name: str, long: bool = False) -> "Iterator[Dict]": """ List data identifier file contents. @@ -364,7 +364,7 @@ def list_files(self, scope: str, name: str, long: bool = False) -> "Iterator[DID exc_cls, exc_msg = self._get_exception(headers=r.headers, status_code=r.status_code, data=r.content) raise exc_cls(exc_msg) - def bulk_list_files(self, dids: "DIDListType") -> "Iterator[DIDType]": + def bulk_list_files(self, dids: "DIDListType") -> "Iterator[Dict]": """ List data identifier file contents. diff --git a/lib/rucio/core/did.py b/lib/rucio/core/did.py index a4395fb642..ebfc3e35d6 100644 --- a/lib/rucio/core/did.py +++ b/lib/rucio/core/did.py @@ -49,7 +49,7 @@ from rucio.common.types import InternalAccount, InternalScope LoggerFunction = Callable[..., Any] - DIDListType = List[DIDType] + DIDListType = List[Dict] METRICS = MetricManager(module=__name__)