Skip to content

Commit

Permalink
Testing: Add type annotations to utils.py and related function calls; r…
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio committed Apr 26, 2024
1 parent 3642ad6 commit b022332
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 95 deletions.
2 changes: 1 addition & 1 deletion lib/rucio/client/downloadclient.py
Expand Up @@ -1182,7 +1182,7 @@ def _resolve_and_merge_input_items(self, input_items, sort=None):
resolve_parents=True,
nrandom=nrandom,
metalink=True)
file_items = parse_replicas_from_string(metalink_str)
file_items = parse_replicas_from_string(metalink_str) # type: ignore
for file in file_items:
if impl:
file['impl'] = impl
Expand Down
8 changes: 8 additions & 0 deletions lib/rucio/common/types.py
Expand Up @@ -191,3 +191,11 @@ class HopDict(TypedDict):
dest_rse_id: str
dest_scheme: "SUPPORTED_PROTOCOLS_LITERAL"
dest_scheme_priority: int


class IPDict(TypedDict):
ip: str
fqdn: str
site: str
latitude: Optional[float]
longitude: Optional[float]

0 comments on commit b022332

Please sign in to comment.