diff options
author | Matt Clay <matt@mystile.com> | 2022-03-02 16:10:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 16:10:44 -0800 |
commit | 5a1b89191798405b2cc130a311b41cbb9e5b711b (patch) | |
tree | b8ab9951e1a17f8066a5e8d6e4008c8711698ccd /lib/ansible/modules | |
parent | 74a204e6f144f3eabd6384bbb665b6afd69117c3 (diff) | |
download | ansible-5a1b89191798405b2cc130a311b41cbb9e5b711b.tar.gz |
Additional type hinting cleanup. (#77188)
Diffstat (limited to 'lib/ansible/modules')
-rw-r--r-- | lib/ansible/modules/hostname.py | 2 | ||||
-rw-r--r-- | lib/ansible/modules/pip.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index 7663635126..edffd903e4 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -75,7 +75,7 @@ import types try: import typing as t except ImportError: - t = None # type: types.ModuleType | None + t = None # type: types.ModuleType | None # type: ignore[no-redef] from ansible.module_utils.basic import ( AnsibleModule, diff --git a/lib/ansible/modules/pip.py b/lib/ansible/modules/pip.py index 8814ae7869..21327bc7b5 100644 --- a/lib/ansible/modules/pip.py +++ b/lib/ansible/modules/pip.py @@ -458,7 +458,7 @@ def _have_pip_module(): # type: () -> bool try: import importlib except ImportError: - importlib = None # type: types.ModuleType | None + importlib = None # type: types.ModuleType | None # type: ignore[no-redef] if importlib: # noinspection PyBroadException |