Skip to content

Commit a478c81

Browse files
stickies-vtheStack
authored andcommitted
test: replace Callable/Iterable with their collections.abc alternative (PEP 585)
1 parent 4b9afb1 commit a478c81

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

contrib/seeds/asmap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
import ipaddress
1111
import random
1212
import unittest
13+
from collections.abc import Callable, Iterable
1314
from enum import Enum
1415
from functools import total_ordering
15-
from typing import Callable, Iterable, Optional, Union, overload
16+
from typing import Optional, Union, overload
1617

1718
def net_to_prefix(net: Union[ipaddress.IPv4Network,ipaddress.IPv6Network]) -> list[bool]:
1819
"""

test/functional/test_framework/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
from . import coverage
2222
from .authproxy import AuthServiceProxy, JSONRPCException
23-
from typing import Callable, Optional
23+
from collections.abc import Callable
24+
from typing import Optional
2425

2526
logger = logging.getLogger("TestFramework.utils")
2627

0 commit comments

Comments
 (0)