import Sequence et al from collections.abc not typing

This commit is contained in:
Jan Petykiewicz 2024-07-28 19:33:16 -07:00
commit 6ec94fb3c3
5 changed files with 45 additions and 28 deletions

View file

@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable
from functools import wraps
from ..error import OneShotError

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,7 +1,7 @@
"""
Geometric transforms
"""
from typing import Sequence
from collections.abc import Sequence
from functools import lru_cache
import numpy