mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add basic typing for module_utils.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils.cmd_runner import CmdRunner, cmd_runner_fmt
|
||||
|
||||
|
||||
@@ -14,7 +16,7 @@ _state_map = {
|
||||
}
|
||||
|
||||
|
||||
def gconftool2_runner(module, **kwargs):
|
||||
def gconftool2_runner(module: AnsibleModule, **kwargs) -> CmdRunner:
|
||||
return CmdRunner(
|
||||
module,
|
||||
command="gconftool-2",
|
||||
|
||||
Reference in New Issue
Block a user