[fix] mypy Coffre + bump 2.80.2 : backend/coffre_store.py
This commit is contained in:
@@ -42,6 +42,7 @@ import threading
|
|||||||
import uuid
|
import uuid
|
||||||
from datetime import UTC, datetime, timedelta
|
from datetime import UTC, datetime, timedelta
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
from backend.coffre_crypto import (
|
from backend.coffre_crypto import (
|
||||||
decrypt_secret_value,
|
decrypt_secret_value,
|
||||||
@@ -306,7 +307,7 @@ def create_coffre(
|
|||||||
data = _load_coffres(base)
|
data = _load_coffres(base)
|
||||||
if any(c["slug"] == slug for c in data["coffres"]):
|
if any(c["slug"] == slug for c in data["coffres"]):
|
||||||
raise CoffreExisteError(f"Coffre déjà existant : {slug}")
|
raise CoffreExisteError(f"Coffre déjà existant : {slug}")
|
||||||
coffre = {
|
coffre: dict[str, Any] = {
|
||||||
"id": str(uuid.uuid4()),
|
"id": str(uuid.uuid4()),
|
||||||
"slug": slug,
|
"slug": slug,
|
||||||
"nom": nom,
|
"nom": nom,
|
||||||
|
|||||||
Reference in New Issue
Block a user