run lint with pyupgrade at py39-plus

This commit is contained in:
pacrob
2025-01-25 15:31:51 -07:00
committed by Paul Robinson
parent 20580b9a4e
commit 8787613e91
44 changed files with 221 additions and 240 deletions

View File

@ -2,10 +2,11 @@ from abc import (
ABC,
abstractmethod,
)
from collections.abc import (
Sequence,
)
from typing import (
Any,
List,
Sequence,
)
from multiaddr import (
@ -24,7 +25,7 @@ from .peermetadata_interface import (
class IPeerData(ABC):
@abstractmethod
def get_protocols(self) -> List[str]:
def get_protocols(self) -> list[str]:
"""
:return: all protocols associated with given peer
"""
@ -48,7 +49,7 @@ class IPeerData(ABC):
"""
@abstractmethod
def get_addrs(self) -> List[Multiaddr]:
def get_addrs(self) -> list[Multiaddr]:
"""
:return: all multiaddresses
"""