mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
test: replace Callable/Iterable with their collections.abc alternative (PEP 585)
This commit is contained in:
committed by
Sebastian Falbesoner
parent
4b9afb18e6
commit
a478c817b2
@@ -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]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user