mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
run lint with pyupgrade at py39-plus
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
import logging
|
||||
import secrets
|
||||
import time
|
||||
from typing import (
|
||||
List,
|
||||
)
|
||||
|
||||
import trio
|
||||
|
||||
@ -102,7 +99,7 @@ class PingService:
|
||||
def __init__(self, host: IHost):
|
||||
self._host = host
|
||||
|
||||
async def ping(self, peer_id: PeerID, ping_amt: int = 1) -> List[int]:
|
||||
async def ping(self, peer_id: PeerID, ping_amt: int = 1) -> list[int]:
|
||||
stream = await self._host.new_stream(peer_id, [ID])
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user