From 41409cf4f7afdcabfd332be64062b7094e83043e Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 6 Apr 2023 17:09:46 -0700 Subject: [PATCH] create no longer exists. Make mk() give similar ordering as mkpat() --- masque/builder/builder.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/masque/builder/builder.py b/masque/builder/builder.py index 8fce958..22905d9 100644 --- a/masque/builder/builder.py +++ b/masque/builder/builder.py @@ -600,15 +600,14 @@ class Pather(Builder): def mk( cls, library: MutableLibrary, - base_name: str, + name: str, *, ports: str | Mapping[str, Port] | None = None, tools: Tool | MutableMapping[str | None, Tool] | None = None, - ) -> tuple['Pather', str]: - """ Name-and-make combination """ - pat = library.create(base_name) - pather = Pather(library, pattern=pat, ports=ports, tools=tools) - return pather, pat.name + ) -> tuple[str, 'Pather']: + """ Name-and-make combination """ # TODO document + pather = Pather(library, name=name, ports=ports, tools=tools) + return name, pather @classmethod def from_builder(