summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/apt.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2022-03-01 17:14:26 -0800
committerGitHub <noreply@github.com>2022-03-01 17:14:26 -0800
commitd31730d78129d223d0611e2f62561e52bd019e09 (patch)
treeb3b26850553b3cc2f59e1ced235dade93db3d5fe /lib/ansible/modules/apt.py
parent7b0fb114be8ae4c6ffa628351a6e69142ee077b8 (diff)
downloadansible-d31730d78129d223d0611e2f62561e52bd019e09.tar.gz
Fixes for type hinting issues. (#77170)
Diffstat (limited to 'lib/ansible/modules/apt.py')
-rw-r--r--lib/ansible/modules/apt.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/modules/apt.py b/lib/ansible/modules/apt.py
index 3b3683e716..70e28eb0a4 100644
--- a/lib/ansible/modules/apt.py
+++ b/lib/ansible/modules/apt.py
@@ -376,7 +376,6 @@ CLEAN_OP_CHANGED_STR = dict(
autoclean='Del ',
)
-apt = apt_pkg = None # keep pylint happy by declaring unconditionally
HAS_PYTHON_APT = False
try:
@@ -385,7 +384,7 @@ try:
import apt_pkg
HAS_PYTHON_APT = True
except ImportError:
- pass
+ apt = apt_pkg = None
class PolicyRcD(object):