From 83acc38281ea5c837e5ef314c4213c49ad99e8a9 Mon Sep 17 00:00:00 2001 From: lla-dane Date: Fri, 11 Jul 2025 19:18:28 +0530 Subject: [PATCH] fix tox bugs --- libp2p/abc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libp2p/abc.py b/libp2p/abc.py index 5a49aef7..158d0083 100644 --- a/libp2p/abc.py +++ b/libp2p/abc.py @@ -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.