Add basic typing for module_utils.

This commit is contained in:
Felix Fontein
2025-11-26 22:37:16 +01:00
parent fb2f34ba85
commit e74033eac1
48 changed files with 209 additions and 142 deletions

View File

@@ -10,6 +10,8 @@ from __future__ import annotations
import re
import traceback
from ansible.module_utils.basic import AnsibleModule
try:
import ldap
import ldap.dn
@@ -52,7 +54,7 @@ def ldap_required_together():
class LdapGeneric:
def __init__(self, module):
def __init__(self, module: AnsibleModule) -> None:
# Shortcuts
self.module = module
self.bind_dn = self.module.params["bind_dn"]