fixup! [PortPather] add rename_to and rename_from
This commit is contained in:
parent
184168f623
commit
d3b83a7543
1 changed files with 3 additions and 0 deletions
|
|
@ -506,7 +506,10 @@ class PortPather:
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def path_from(self, *args, **kwargs) -> Self:
|
def path_from(self, *args, **kwargs) -> Self:
|
||||||
|
thru = kwargs.pop('thru', None)
|
||||||
self.pather.path_into(args[0], self.port, *args[1:], **kwargs)
|
self.pather.path_into(args[0], self.port, *args[1:], **kwargs)
|
||||||
|
if thru is not None:
|
||||||
|
self.rename_from(thru)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def mpath(self, *args, **kwargs) -> Self:
|
def mpath(self, *args, **kwargs) -> Self:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue