import Sequence et al from collections.abc not typing
This commit is contained in:
parent
b1d78b9acb
commit
6ec94fb3c3
28 changed files with 45 additions and 28 deletions
|
|
@ -1,7 +1,8 @@
|
|||
"""
|
||||
Simplified Pattern assembly (`Builder`)
|
||||
"""
|
||||
from typing import Self, Sequence, Mapping
|
||||
from typing import Self
|
||||
from collections.abc import Sequence, Mapping
|
||||
import copy
|
||||
import logging
|
||||
from functools import wraps
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
"""
|
||||
Manual wire/waveguide routing (`Pather`)
|
||||
"""
|
||||
from typing import Self, Sequence, MutableMapping, Mapping
|
||||
from typing import Self
|
||||
from collections.abc import Sequence, MutableMapping, Mapping
|
||||
import copy
|
||||
import logging
|
||||
from pprint import pformat
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
"""
|
||||
Pather with batched (multi-step) rendering
|
||||
"""
|
||||
from typing import Self, Sequence, Mapping, MutableMapping
|
||||
from typing import Self
|
||||
from collections.abc import Sequence, Mapping, MutableMapping
|
||||
import copy
|
||||
import logging
|
||||
from collections import defaultdict
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ Tools are objects which dynamically generate simple single-use devices (e.g. wir
|
|||
|
||||
# TODO document all tools
|
||||
"""
|
||||
from typing import Sequence, Literal, Callable, Any
|
||||
from typing import Literal, Any
|
||||
from collections.abc import Sequence, Callable
|
||||
from abc import ABCMeta # , abstractmethod # TODO any way to make Tool ok with implementing only one method?
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from typing import Mapping, Sequence, SupportsFloat, cast, TYPE_CHECKING
|
||||
from typing import SupportsFloat, cast, TYPE_CHECKING
|
||||
from collections.abc import Mapping, Sequence
|
||||
from pprint import pformat
|
||||
|
||||
import numpy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue