From 2be1dccb9122c076bebb40aee653839ec1045c46 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 22 Dec 2023 00:34:15 +0100 Subject: [PATCH] mypy doesn't like the function attribute trick --- src/authenticators/ldap_admin.py | 2 +- src/authenticators/ldap_ynhuser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authenticators/ldap_admin.py b/src/authenticators/ldap_admin.py index 24a5b42b8..e4617e245 100644 --- a/src/authenticators/ldap_admin.py +++ b/src/authenticators/ldap_admin.py @@ -45,7 +45,7 @@ def SESSION_SECRET(): return SESSION_SECRET.value -SESSION_SECRET.value = None +SESSION_SECRET.value = None # type: ignore SESSION_FOLDER = "/var/cache/yunohost/sessions" SESSION_VALIDITY = 3 * 24 * 3600 # 3 days diff --git a/src/authenticators/ldap_ynhuser.py b/src/authenticators/ldap_ynhuser.py index 09eeb4d18..2ae71242c 100644 --- a/src/authenticators/ldap_ynhuser.py +++ b/src/authenticators/ldap_ynhuser.py @@ -34,7 +34,7 @@ def SESSION_SECRET(): return SESSION_SECRET.value -SESSION_SECRET.value = None +SESSION_SECRET.value = None # type: ignore SESSION_FOLDER = "/var/cache/yunohost-portal/sessions" SESSION_VALIDITY = 3 * 24 * 3600 # 3 days