mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
test: replace Callable
/Iterable
with their collections.abc
alternative (PEP 585)
This commit is contained in:
parent
4b9afb18e6
commit
a478c817b2
2 changed files with 4 additions and 2 deletions
|
@ -10,9 +10,10 @@ import copy
|
|||
import ipaddress
|
||||
import random
|
||||
import unittest
|
||||
from collections.abc import Callable, Iterable
|
||||
from enum import Enum
|
||||
from functools import total_ordering
|
||||
from typing import Callable, Iterable, Optional, Union, overload
|
||||
from typing import Optional, Union, overload
|
||||
|
||||
def net_to_prefix(net: Union[ipaddress.IPv4Network,ipaddress.IPv6Network]) -> list[bool]:
|
||||
"""
|
||||
|
|
|
@ -20,7 +20,8 @@ import time
|
|||
|
||||
from . import coverage
|
||||
from .authproxy import AuthServiceProxy, JSONRPCException
|
||||
from typing import Callable, Optional
|
||||
from collections.abc import Callable
|
||||
from typing import Optional
|
||||
|
||||
logger = logging.getLogger("TestFramework.utils")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue