Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 53e87e8

Browse files
stainless-app[bot]stainless-bot
authored andcommittedOct 7, 2024·
chore: add repr to PageInfo class (#678)
1 parent 93d6eeb commit 53e87e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/anthropic/_base_client.py

+6
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ def __init__(
144144
self.url = url
145145
self.params = params
146146

147+
@override
148+
def __repr__(self) -> str:
149+
if self.url:
150+
return f"{self.__class__.__name__}(url={self.url})"
151+
return f"{self.__class__.__name__}(params={self.params})"
152+
147153

148154
class BasePage(GenericModel, Generic[_T]):
149155
"""

0 commit comments

Comments
 (0)
Please sign in to comment.