repr updates
This commit is contained in:
parent
13bb3e36c6
commit
10436b59f4
@ -381,7 +381,7 @@ class Builder(PortList):
|
||||
return self
|
||||
|
||||
def __repr__(self) -> str:
|
||||
s = f'<Builder {self.pattern} >' # TODO maybe show lib and tools? in builder repr?
|
||||
s = f'<Builder {self.pattern} L({len(self.library)})>'
|
||||
return s
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
from typing import Self, Sequence, MutableMapping, Mapping
|
||||
import copy
|
||||
import logging
|
||||
from pprint import pformat
|
||||
|
||||
import numpy
|
||||
from numpy import pi
|
||||
@ -196,7 +197,7 @@ class Pather(Builder):
|
||||
return new
|
||||
|
||||
def __repr__(self) -> str:
|
||||
s = f'<Pather {self.pattern} >' # TODO maybe show lib and tools? in builder repr?
|
||||
s = f'<Pather {self.pattern} L({len(self.library)}) {pformat(self.tools)}>'
|
||||
return s
|
||||
|
||||
def retool(
|
||||
|
@ -2,6 +2,7 @@ from typing import Self, Sequence, Mapping, MutableMapping
|
||||
import copy
|
||||
import logging
|
||||
from collections import defaultdict
|
||||
from pprint import pformat
|
||||
|
||||
import numpy
|
||||
from numpy import pi
|
||||
@ -508,7 +509,7 @@ class RenderPather(PortList):
|
||||
return self
|
||||
|
||||
def __repr__(self) -> str:
|
||||
s = f'<RenderPather {self.pattern} >' # TODO maybe show lib and tools? in builder repr?
|
||||
s = f'<Pather {self.pattern} L({len(self.library)}) {pformat(self.tools)}>'
|
||||
return s
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user