1111 QueryParamTypes ,
1212 RequestContent ,
1313 RequestFiles ,
14- TimeoutTypes ,
1514)
1615
1716from aiocloudflare .commons .config import Config
@@ -82,8 +81,7 @@ async def get(
8281 headers : HeaderTypes = None , # type: ignore[assignment]
8382 cookies : CookieTypes = None , # type: ignore[assignment]
8483 auth : typing .Union [AuthTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
85- allow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
86- timeout : typing .Union [TimeoutTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
84+ follow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
8785 ) -> Response :
8886 if self ._config .DEBUG :
8987 getattr (self , "debug_print" )("get" , * args ) # noqa
@@ -96,7 +94,7 @@ async def get(
9694 cookies = cookies ,
9795 )
9896 return await self ._session .send (
99- request = request , auth = auth , allow_redirects = allow_redirects , timeout = timeout
97+ request = request , auth = auth , follow_redirects = follow_redirects
10098 )
10199
102100
@@ -119,8 +117,7 @@ async def post(
119117 headers : HeaderTypes = None , # type: ignore[assignment]
120118 cookies : CookieTypes = None , # type: ignore[assignment]
121119 auth : typing .Union [AuthTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
122- allow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
123- timeout : typing .Union [TimeoutTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
120+ follow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
124121 ) -> Response :
125122 if self ._config .DEBUG :
126123 getattr (self , "debug_print" )("post" , * args , data = data ) # noqa
@@ -135,7 +132,7 @@ async def post(
135132 content = content ,
136133 )
137134 return await self ._session .send (
138- request = request , auth = auth , allow_redirects = allow_redirects , timeout = timeout
135+ request = request , auth = auth , follow_redirects = follow_redirects
139136 )
140137
141138
@@ -158,8 +155,7 @@ async def put(
158155 headers : HeaderTypes = None , # type: ignore[assignment]
159156 cookies : CookieTypes = None , # type: ignore[assignment]
160157 auth : typing .Union [AuthTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
161- allow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
162- timeout : typing .Union [TimeoutTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
158+ follow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
163159 ) -> Response :
164160 if self ._config .DEBUG :
165161 getattr (self , "debug_print" )("put" , * args , data = data ) # noqa
@@ -174,7 +170,7 @@ async def put(
174170 params = params ,
175171 )
176172 return await self ._session .send (
177- request = request , auth = auth , allow_redirects = allow_redirects , timeout = timeout
173+ request = request , auth = auth , follow_redirects = follow_redirects
178174 )
179175
180176
@@ -197,8 +193,7 @@ async def patch(
197193 headers : HeaderTypes = None , # type: ignore[assignment]
198194 cookies : CookieTypes = None , # type: ignore[assignment]
199195 auth : typing .Union [AuthTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
200- allow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
201- timeout : typing .Union [TimeoutTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
196+ follow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
202197 ) -> Response :
203198 if self ._config .DEBUG :
204199 getattr (self , "debug_print" )("patch" , * args , data = data ) # noqa
@@ -213,7 +208,7 @@ async def patch(
213208 params = params ,
214209 )
215210 return await self ._session .send (
216- request = request , auth = auth , allow_redirects = allow_redirects , timeout = timeout
211+ request = request , auth = auth , follow_redirects = follow_redirects
217212 )
218213
219214
@@ -232,8 +227,7 @@ async def delete(
232227 headers : HeaderTypes = None , # type: ignore[assignment]
233228 cookies : CookieTypes = None , # type: ignore[assignment]
234229 auth : typing .Union [AuthTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
235- allow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
236- timeout : typing .Union [TimeoutTypes , UseClientDefault ] = USE_CLIENT_DEFAULT ,
230+ follow_redirects : typing .Union [bool , UseClientDefault ] = USE_CLIENT_DEFAULT ,
237231 ) -> Response :
238232 if self ._config .DEBUG :
239233 getattr (self , "debug_print" )("delete" , * args ) # noqa
@@ -245,5 +239,5 @@ async def delete(
245239 params = params ,
246240 )
247241 return await self ._session .send (
248- request = request , auth = auth , allow_redirects = allow_redirects , timeout = timeout
242+ request = request , auth = auth , follow_redirects = follow_redirects
249243 )
0 commit comments