def __rich_repr__(self) -> RichReprResult:
        """Used by Rich (https://rich.readthedocs.io/en/stable/pretty.html) to pretty print objects."""
        for name, field_repr in self.__repr_args__():
            if name is None:
                yield field_repr
            else:
                yield name, field_repr
Used by Rich (https://rich.readthedocs.io/en/stable/pretty.html) to pretty print objects.
pydantic/_internal/_repr.py