get rid of NamedPattern in favor of just returning a tuple

This commit is contained in:
jan 2023-04-06 16:52:01 -07:00
commit cbfbdf66a1
5 changed files with 16 additions and 72 deletions

View file

@ -6,7 +6,7 @@ import numpy
from numpy import pi
from numpy.typing import ArrayLike
from ..pattern import Pattern, NamedPattern
from ..pattern import Pattern
from ..ref import Ref
from ..library import MutableLibrary, Tree
from ..error import PortError, BuildError
@ -236,7 +236,7 @@ class Builder(PortList):
def plug(
self,
other: Abstract | str | NamedPattern,
other: Abstract | str,
map_in: dict[str, str],
map_out: dict[str, str | None] | None = None,
*,
@ -337,7 +337,7 @@ class Builder(PortList):
def place(
self,
other: Abstract | str | NamedPattern,
other: Abstract | str,
*,
offset: ArrayLike = (0, 0),
rotation: float = 0,