Skip to content

Commit

Permalink
chore: add repr to PageInfo class (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Oct 7, 2024
1 parent 51e7ebb commit a929e0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/openai/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
"""
Expand Down

0 comments on commit a929e0d

Please sign in to comment.