create no longer exists. Make mk() give similar ordering as mkpat()
This commit is contained in:
parent
37e4c03547
commit
64413f69d4
@ -600,15 +600,14 @@ class Pather(Builder):
|
|||||||
def mk(
|
def mk(
|
||||||
cls,
|
cls,
|
||||||
library: MutableLibrary,
|
library: MutableLibrary,
|
||||||
base_name: str,
|
name: str,
|
||||||
*,
|
*,
|
||||||
ports: str | Mapping[str, Port] | None = None,
|
ports: str | Mapping[str, Port] | None = None,
|
||||||
tools: Tool | MutableMapping[str | None, Tool] | None = None,
|
tools: Tool | MutableMapping[str | None, Tool] | None = None,
|
||||||
) -> tuple['Pather', str]:
|
) -> tuple[str, 'Pather']:
|
||||||
""" Name-and-make combination """
|
""" Name-and-make combination """ # TODO document
|
||||||
pat = library.create(base_name)
|
pather = Pather(library, name=name, ports=ports, tools=tools)
|
||||||
pather = Pather(library, pattern=pat, ports=ports, tools=tools)
|
return name, pather
|
||||||
return pather, pat.name
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_builder(
|
def from_builder(
|
||||||
|
Loading…
Reference in New Issue
Block a user