repr updates

This commit is contained in:
Jan Petykiewicz 2023-10-07 01:50:22 -07:00 committed by jan
parent 086d07a82d
commit 8fe7b14f4b
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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(

View File

@ -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