fix tox bugs

This commit is contained in:
lla-dane
2025-07-11 19:18:28 +05:30
parent 1899dac84c
commit 83acc38281

View File

@ -16,6 +16,7 @@ from typing import (
TYPE_CHECKING,
Any,
AsyncContextManager,
Optional,
)
from multiaddr import (
@ -523,7 +524,7 @@ class ICertifiedAddrBook(ABC):
"""
@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
and is still relevant.
@ -983,7 +984,7 @@ class IPeerStore(
"""
@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
and is still relevant.