mypy doesn't like the function attribute trick

This commit is contained in:
Alexandre Aubin 2023-12-22 00:34:15 +01:00
parent 6022be5ff1
commit 2be1dccb91
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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