CI: add type checking (#10997)

* Set up type checking with mypy.

* Make mypy pass.

* Use list() instead of sorted().
This commit is contained in:
Felix Fontein
2025-10-29 18:13:38 +01:00
committed by GitHub
parent 831787619a
commit 6088b0cff5
73 changed files with 442 additions and 175 deletions

View File

@@ -53,7 +53,7 @@ __all__ = [
]
_singletons = {}
_singletons: dict[str, object] = {}
def ldap_module():
@@ -61,7 +61,7 @@ def ldap_module():
return orig_ldap
def _singleton(name, constructor):
def _singleton(name: str, constructor):
if name in _singletons:
return _singletons[name]
_singletons[name] = constructor()