remove redundant dataclass

This commit is contained in:
Ville Brofeldt 2024-06-24 17:39:44 +03:00
parent 7ab1f48c14
commit d3d3565592
2 changed files with 1 additions and 8 deletions

View File

@ -58,9 +58,9 @@ class CreateDashboardPermalinkCommand(BaseDashboardPermalinkCommand):
user_id = get_user_id()
entry = KeyValueDAO.upsert_entry(
resource=self.resource,
key=get_deterministic_uuid(self.salt, (user_id, value)),
value=value,
codec=self.codec,
key=get_deterministic_uuid(self.salt, (user_id, value)),
)
db.session.flush()
assert entry.id # for type checks

View File

@ -19,7 +19,6 @@ from __future__ import annotations
import json
import pickle
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Any, TypedDict
from uuid import UUID
@ -32,12 +31,6 @@ from superset.key_value.exceptions import (
from superset.utils.backports import StrEnum
@dataclass
class Key:
id: int | None
uuid: UUID | None
class KeyValueFilter(TypedDict, total=False):
resource: str
id: int | None