From 53e87e8abed82fe90fb2d877f69a2cc695662e86 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:40:59 +0000 Subject: [PATCH] chore: add repr to PageInfo class (#678) --- src/anthropic/_base_client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/anthropic/_base_client.py b/src/anthropic/_base_client.py index 41365644..34ca046d 100644 --- a/src/anthropic/_base_client.py +++ b/src/anthropic/_base_client.py @@ -144,6 +144,12 @@ def __init__( self.url = url self.params = params + @override + def __repr__(self) -> str: + if self.url: + return f"{self.__class__.__name__}(url={self.url})" + return f"{self.__class__.__name__}(params={self.params})" + class BasePage(GenericModel, Generic[_T]): """