Skip to content

Commit

Permalink
Testing: Remove unused RSEDeterministicTranslationT
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio authored and bari12 committed Nov 1, 2024
1 parent f22846d commit 3f8b419
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/rucio/common/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
if TYPE_CHECKING:
from collections.abc import Callable

PolicyPackageAlgorithmsT = TypeVar('PolicyPackageAlgorithmsT', bound='PolicyPackageAlgorithms')

if TYPE_CHECKING:
from rucio.common.types import LoggerFunction

PolicyPackageAlgorithmsT = TypeVar('PolicyPackageAlgorithmsT', bound='PolicyPackageAlgorithms')


def check_policy_package_version(package: str, logger: 'LoggerFunction' = logging.log) -> None:

Expand Down
6 changes: 2 additions & 4 deletions lib/rucio/rse/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import hashlib
import logging
from configparser import NoOptionError, NoSectionError
from typing import TYPE_CHECKING, Any, Optional, TypeVar
from typing import TYPE_CHECKING, Any, Optional

from rucio.common import config
from rucio.common.constants import RseAttr
Expand All @@ -23,6 +23,7 @@
if TYPE_CHECKING:
from collections.abc import Callable, Mapping


class RSEDeterministicScopeTranslation(PolicyPackageAlgorithms):
"""
Translates a pfn dictionary into a scope and name
Expand Down Expand Up @@ -109,9 +110,6 @@ def _atlas(parsed_pfn: 'Mapping[str, str]') -> tuple[str, str]:
RSEDeterministicScopeTranslation()


RSEDeterministicTranslationT = TypeVar('RSEDeterministicTranslationT', bound='RSEDeterministicTranslation')


class RSEDeterministicTranslation(PolicyPackageAlgorithms):
"""
Execute the logic for translating a LFN to a path.
Expand Down

0 comments on commit 3f8b419

Please sign in to comment.