Skip to content

Commit 0077ab3

Browse files
committed
Adds __repr__ to Response class
1 parent 878d115 commit 0077ab3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

microsoftgraph/response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ class Response:
55
def __init__(self, original) -> None:
66
self.original = original
77

8+
def __repr__(self) -> str:
9+
return "<Response [{}] ({})>".format(self.status_code, self.data)
10+
811
@property
912
def data(self):
1013
if "application/json" in self.original.headers.get("Content-Type", ""):

0 commit comments

Comments
 (0)