Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: Add type checking for rules #6253

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/rucio/common/stomp_utils.py
Expand Up @@ -26,9 +26,8 @@
import logging

if TYPE_CHECKING:
from typing import Any, Callable, List, Sequence, Tuple

LoggerFunction = Callable[..., Any]
from typing import List, Sequence, Tuple
from rucio.common.types import LoggerFunction


def resolve_ips(fqdns: "Sequence[str]", logger: "LoggerFunction" = logging.log):
Expand Down
8 changes: 8 additions & 0 deletions lib/rucio/common/types.py
Expand Up @@ -13,6 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from typing import Any, Callable

LoggerFunction = Callable[..., Any]


class InternalType(object):
'''
Base for Internal representations of string types
Expand Down