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 Mar 25, 2024
1 parent b3227b1 commit d5d3d67
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 @@ -1181,7 +1181,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 @@ -178,3 +178,11 @@ class RuleDict(TypedDict):
class DIDDict(TypedDict):
name: str
scope: InternalScope


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

0 comments on commit d5d3d67

Please sign in to comment.