diff --git a/archivebox/plugins_auth/ldap/apps.py b/archivebox/plugins_auth/ldap/apps.py index 7117de0e..f6d8d51c 100644 --- a/archivebox/plugins_auth/ldap/apps.py +++ b/archivebox/plugins_auth/ldap/apps.py @@ -18,7 +18,7 @@ from .settings import LDAP_CONFIG, get_ldap_lib ###################### Config ########################## -LDAP_LIB = lambda: get_ldap_lib()[0] +LDAP_LIB = lambda: get_ldap_lib()[0] # lazy load to avoid slow ldap lib import on startup class LdapBinary(BaseBinary): @@ -28,12 +28,12 @@ class LdapBinary(BaseBinary): provider_overrides: Dict[BinProviderName, ProviderLookupDict] = { VENV_PIP_BINPROVIDER.name: { - "abspath": lambda: LDAP_LIB() and Path(inspect.getfile(LDAP_LIB())), - "version": lambda: LDAP_LIB() and SemVer(LDAP_LIB().__version__), + "abspath": lambda: LDAP_LIB() and Path(inspect.getfile(LDAP_LIB())), # type: ignore + "version": lambda: LDAP_LIB() and SemVer(LDAP_LIB().__version__), # type: ignore }, SYS_PIP_BINPROVIDER.name: { - "abspath": lambda: LDAP_LIB() and Path(inspect.getfile(LDAP_LIB())), - "version": lambda: LDAP_LIB() and SemVer(LDAP_LIB().__version__), + "abspath": lambda: LDAP_LIB() and Path(inspect.getfile(LDAP_LIB())), # type: ignore + "version": lambda: LDAP_LIB() and SemVer(LDAP_LIB().__version__), # type: ignore }, } diff --git a/archivebox/plugins_auth/ldap/settings.py b/archivebox/plugins_auth/ldap/settings.py index 36e5b1d9..094e1e9b 100644 --- a/archivebox/plugins_auth/ldap/settings.py +++ b/archivebox/plugins_auth/ldap/settings.py @@ -58,7 +58,7 @@ class LdapConfig(BaseConfigSet): self.update_in_place(LDAP_ENABLED=False) # Check that all required LDAP config options are set - if self.self.LDAP_CONFIG_IS_SET: + if self.LDAP_CONFIG_IS_SET: missing_config_options = [ key for key, value in self.model_dump().items() if value is None and key != 'LDAP_ENABLED'