Skip to content

Commit

Permalink
Add some hints for future development
Browse files Browse the repository at this point in the history
  • Loading branch information
calpaterson committed Jul 15, 2020
1 parent a93e94a commit ceaada6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyappcache/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@


class Key(Protocol[V]):
# FIXME: should should_compress be required? or just an optional thing to
# implement
def should_compress(self, python_obj: V, as_bytes: bytes) -> bool:
pass # pragma: no cover

def as_segments(self) -> Sequence[str]:
pass # pragma: no cover


# FIXME: is it possible to make this a KeyBase or something?
class GenericStringKey(Key[V]):
def __init__(self, key_str: str):
self.key_str = key_str
Expand Down

0 comments on commit ceaada6

Please sign in to comment.