Skip to content

Commit

Permalink
Fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
cserf committed Sep 14, 2023
1 parent ae80c12 commit b58f362
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rucio/api/did.py
Expand Up @@ -31,7 +31,7 @@
from typing import Any, Optional, List, Iterator
from sqlalchemy.orm import Session

DIDListType = List[DIDType]
DIDListType = List[Dict]


@stream_session
Expand Down
4 changes: 2 additions & 2 deletions lib/rucio/client/didclient.py
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/rucio/core/did.py
Expand Up @@ -49,7 +49,7 @@
from rucio.common.types import InternalAccount, InternalScope

LoggerFunction = Callable[..., Any]
DIDListType = List[DIDType]
DIDListType = List[Dict]

METRICS = MetricManager(module=__name__)

Expand Down

0 comments on commit b58f362

Please sign in to comment.