From c8b7cb72fd5194dd9f6eb56b041508b833f71d21 Mon Sep 17 00:00:00 2001 From: mhorky Date: Wed, 1 Nov 2023 16:56:35 +0100 Subject: [PATCH] Fix type hint in rhsm When type hints for 'dnf' are not available, loading this module would result in a test failure. --- src/rhsm/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rhsm/profile.py b/src/rhsm/profile.py index de570c115f..374df83b52 100644 --- a/src/rhsm/profile.py +++ b/src/rhsm/profile.py @@ -86,7 +86,7 @@ def _uniquify(module_list: list) -> list: return list(ret.values()) @staticmethod - def fix_aws_rhui_repos(base: dnf.Base) -> None: + def fix_aws_rhui_repos(base: "dnf.Base") -> None: """ Try to fix RHUI repos on AWS systems. When the system is running on AWS, then we have to fix repository URL. See: https://bugzilla.redhat.com/show_bug.cgi?id=1924126