Use PEP 585 syntax in collections (#7657)

This commit is contained in:
Alex Waygood
2022-04-18 15:33:50 +01:00
committed by GitHub
parent 97a74bc1aa
commit 073f9f416d

View File

@@ -8,7 +8,7 @@ if sys.version_info >= (3, 9):
from types import GenericAlias
if sys.version_info >= (3, 10):
from typing import Callable, Iterable, Iterator, Mapping, MutableMapping, MutableSequence, Reversible, Sequence
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping, MutableSequence, Reversible, Sequence
else:
from _collections_abc import *