Skip to content

Commit

Permalink
use ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed May 3, 2023
1 parent b8aab7a commit 7aa52f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions superset/key_value/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import json
import pickle
from abc import ABC
from abc import ABC, abstractmethod
from dataclasses import dataclass
from enum import Enum
from typing import Any, Optional, TypedDict
Expand Down Expand Up @@ -50,11 +50,13 @@ class SharedKey(str, Enum):


class KeyValueCodec(ABC):
@abstractmethod
def encode(self, value: Any) -> bytes:
raise NotImplementedError()
...

@abstractmethod
def decode(self, value: bytes) -> Any:
raise NotImplementedError()
...


class JsonKeyValueCodec(KeyValueCodec):
Expand Down

0 comments on commit 7aa52f5

Please sign in to comment.