in chz/blueprint/_blueprint.py [0:0]
def to_help_str(self) -> str:
if self.factory is not MISSING:
if getattr(self.factory, "__name__", None) == "<lambda>":
return f"({_lambda_repr(self.factory)})()" or "<default>"
# type_repr works reasonably well for functions too
return f"{type_repr(self.factory)}()"
ret = repr(self.value)
if len(ret) > 40:
return "<default>"
return ret