@property
def peers(self) -> Mapping[(bytes, Peer)]:
    'Returns a read-only copy of peers.'
    with self.lock:
        return self._peers.copy()
Returns a read-only copy of peers.
@property
def peers(self) -> Mapping[(bytes, Peer)]:
    
    with self.lock:
        return self._peers.copy()