repr updates
This commit is contained in:
parent
13bb3e36c6
commit
10436b59f4
@ -381,7 +381,7 @@ class Builder(PortList):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
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
|
return s
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
from typing import Self, Sequence, MutableMapping, Mapping
|
from typing import Self, Sequence, MutableMapping, Mapping
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
|
from pprint import pformat
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
from numpy import pi
|
from numpy import pi
|
||||||
@ -196,7 +197,7 @@ class Pather(Builder):
|
|||||||
return new
|
return new
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
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
|
return s
|
||||||
|
|
||||||
def retool(
|
def retool(
|
||||||
|
@ -2,6 +2,7 @@ from typing import Self, Sequence, Mapping, MutableMapping
|
|||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
from pprint import pformat
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
from numpy import pi
|
from numpy import pi
|
||||||
@ -508,7 +509,7 @@ class RenderPather(PortList):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
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
|
return s
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user