Skip to content

Commit eb770a9

Browse files
author
Florent Clairambault
authored
Doc update + deprecation notice (#78)
1 parent 4975646 commit eb770a9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ sample_transport=RequestsHTTPTransport(
7171
headers={
7272
"Content-type": "application/json",
7373
},
74-
verify=False
74+
verify=False,
75+
retries=3,
7576
)
7677

7778
client = Client(
78-
retries=3,
7979
transport=sample_transport,
8080
fetch_schema_from_transport=True,
8181
)

gql/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ def __init__(
5252
self.transport = transport
5353
self.retries = retries
5454

55+
if self.retries:
56+
log.warning(
57+
"The retries parameter on the Client class is deprecated."
58+
"You can pass it to the RequestsHTTPTransport."
59+
)
60+
5561
def validate(self, document):
5662
if not self.schema:
5763
raise Exception(

0 commit comments

Comments
 (0)