Lint peer classes

This commit is contained in:
Stuckinaboot
2018-10-21 15:15:53 -04:00
parent 88b7eda256
commit 7d124bb047
7 changed files with 173 additions and 181 deletions

View File

@ -2,24 +2,25 @@ from abc import ABC, abstractmethod
class IPeerMetadata(ABC):
def __init__(self, context):
def __init__(self, context):
self.context = context
@abstractmethod
def get(self, peerID, key):
"""
:param peerID: peer ID to lookup key for
:param key: key to look up
@abstractmethod
def get(self, peer_id, key):
"""
:param peer_id: peer ID to lookup key for
:param key: key to look up
:return: value at key for given peer, error
"""
pass
pass
@abstractmethod
def put(self, peerID, key, val):
"""
:param peerID: peer ID to lookup key for
:param key: key to associate with peer
:param val: value to associated with key
@abstractmethod
def put(self, peer_id, key, val):
"""
:param peer_id: peer ID to lookup key for
:param key: key to associate with peer
:param val: value to associated with key
:return: error
"""
pass
pass