mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 15:40:54 +00:00
fix tox bugs
This commit is contained in:
@ -16,6 +16,7 @@ from typing import (
|
|||||||
TYPE_CHECKING,
|
TYPE_CHECKING,
|
||||||
Any,
|
Any,
|
||||||
AsyncContextManager,
|
AsyncContextManager,
|
||||||
|
Optional,
|
||||||
)
|
)
|
||||||
|
|
||||||
from multiaddr import (
|
from multiaddr import (
|
||||||
@ -523,7 +524,7 @@ class ICertifiedAddrBook(ABC):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_peer_record(self, peer_id: ID) -> Envelope | None:
|
def get_peer_record(self, peer_id: ID) -> Optional["Envelope"]:
|
||||||
"""
|
"""
|
||||||
Retrieve the most recent signed PeerRecord `Envelope` for a peer, if it exists
|
Retrieve the most recent signed PeerRecord `Envelope` for a peer, if it exists
|
||||||
and is still relevant.
|
and is still relevant.
|
||||||
@ -983,7 +984,7 @@ class IPeerStore(
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_peer_record(self, peer_id: ID) -> Envelope | None:
|
def get_peer_record(self, peer_id: ID) -> Optional["Envelope"]:
|
||||||
"""
|
"""
|
||||||
Retrieve the most recent signed PeerRecord `Envelope` for a peer, if it exists
|
Retrieve the most recent signed PeerRecord `Envelope` for a peer, if it exists
|
||||||
and is still relevant.
|
and is still relevant.
|
||||||
|
|||||||
Reference in New Issue
Block a user