Define __repr__ for docs and anns