import Sequence et al from collections.abc not typing
This commit is contained in:
parent
b1d78b9acb
commit
6ec94fb3c3
5 changed files with 45 additions and 28 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Callable
|
||||
from collections.abc import Callable
|
||||
from functools import wraps
|
||||
|
||||
from ..error import OneShotError
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from typing import Callable, TypeVar, Generic
|
||||
from typing import TypeVar, Generic
|
||||
from collections.abc import Callable
|
||||
from functools import lru_cache
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
2D bin-packing
|
||||
"""
|
||||
from typing import Sequence, Callable, Mapping
|
||||
from collections.abc import Sequence, Mapping, Callable
|
||||
|
||||
import numpy
|
||||
from numpy.typing import NDArray, ArrayLike
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ and retrieving it (`data_to_ports`).
|
|||
the port locations. This particular approach is just a sensible default; feel free to
|
||||
to write equivalent functions for your own format or alternate storage methods.
|
||||
"""
|
||||
from typing import Sequence, Mapping
|
||||
from collections.abc import Sequence, Mapping
|
||||
import logging
|
||||
from itertools import chain
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
Geometric transforms
|
||||
"""
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
from functools import lru_cache
|
||||
|
||||
import numpy
|
||||
|
|
|
|||
Loading…
Reference in a new issue