mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Apply PR feedback: fix type hints
This commit is contained in:
@ -14,7 +14,7 @@ class IPeerMetadata(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get(self, peer_id: ID, key: Any) -> Any:
|
||||
def get(self, peer_id: ID, key: str) -> Any:
|
||||
"""
|
||||
:param peer_id: peer ID to lookup key for
|
||||
:param key: key to look up
|
||||
@ -23,7 +23,7 @@ class IPeerMetadata(ABC):
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def put(self, peer_id: ID, key: Any, val: Any) -> None:
|
||||
def put(self, peer_id: ID, key: str, val: Any) -> None:
|
||||
"""
|
||||
:param peer_id: peer ID to lookup key for
|
||||
:param key: key to associate with peer
|
||||
|
||||
Reference in New Issue
Block a user