add NamedPattern

This commit is contained in:
Jan Petykiewicz 2023-01-27 10:07:39 -08:00 committed by jan
commit ab8fd9b351
3 changed files with 57 additions and 7 deletions

View file

@ -7,7 +7,7 @@ import numpy
from numpy import pi
from numpy.typing import ArrayLike
from ..pattern import Pattern
from ..pattern import Pattern, NamedPattern
from ..ref import Ref
from ..library import MutableLibrary
from ..error import PortError, BuildError
@ -253,7 +253,7 @@ class Builder(PortList):
def plug(
self: BB,
other: Union[Abstract, str],
other: Union[Abstract, str, NamedPattern],
map_in: Dict[str, str],
map_out: Optional[Dict[str, Optional[str]]] = None,
*,
@ -352,7 +352,7 @@ class Builder(PortList):
def place(
self: BB,
other: Union[Abstract, str],
other: Union[Abstract, str, NamedPattern],
*,
offset: ArrayLike = (0, 0),
rotation: float = 0,