1
- from _typeshed import Incomplete , SupportsItems , SupportsRead , Unused
1
+ from _typeshed import SupportsItems , SupportsRead , Unused
2
2
from collections .abc import Callable , Iterable , Mapping , MutableMapping
3
3
from typing import Any , TypedDict
4
4
from typing_extensions import Self , TypeAlias
5
5
6
6
from . import adapters , auth as _auth , compat , cookies , exceptions , hooks , models , status_codes , utils
7
- from .models import Response
7
+ from .models import _JSON , Response
8
8
from .structures import CaseInsensitiveDict as CaseInsensitiveDict
9
9
10
10
_BaseAdapter : TypeAlias = adapters .BaseAdapter
@@ -44,10 +44,10 @@ class SessionRedirectMixin:
44
44
resp ,
45
45
req ,
46
46
stream : bool = False ,
47
- timeout : Incomplete | None = None ,
47
+ timeout = None ,
48
48
verify : bool = True ,
49
- cert : Incomplete | None = None ,
50
- proxies : Incomplete | None = None ,
49
+ cert = None ,
50
+ proxies = None ,
51
51
yield_requests : bool = False ,
52
52
** adapter_kwargs ,
53
53
): ...
@@ -151,7 +151,7 @@ class Session(SessionRedirectMixin):
151
151
stream : bool | None = None ,
152
152
verify : _Verify | None = None ,
153
153
cert : _Cert | None = None ,
154
- json : Incomplete | None = None ,
154
+ json : _JSON | None = None ,
155
155
) -> Response : ...
156
156
def get (
157
157
self ,
@@ -170,7 +170,7 @@ class Session(SessionRedirectMixin):
170
170
stream : bool | None = ...,
171
171
verify : _Verify | None = ...,
172
172
cert : _Cert | None = ...,
173
- json : Incomplete | None = ... ,
173
+ json : _JSON | None = None ,
174
174
) -> Response : ...
175
175
def options (
176
176
self ,
@@ -189,7 +189,7 @@ class Session(SessionRedirectMixin):
189
189
stream : bool | None = ...,
190
190
verify : _Verify | None = ...,
191
191
cert : _Cert | None = ...,
192
- json : Incomplete | None = ... ,
192
+ json : _JSON | None = None ,
193
193
) -> Response : ...
194
194
def head (
195
195
self ,
@@ -208,13 +208,13 @@ class Session(SessionRedirectMixin):
208
208
stream : bool | None = ...,
209
209
verify : _Verify | None = ...,
210
210
cert : _Cert | None = ...,
211
- json : Incomplete | None = ... ,
211
+ json : _JSON | None = None ,
212
212
) -> Response : ...
213
213
def post (
214
214
self ,
215
215
url : str | bytes ,
216
216
data : _Data | None = None ,
217
- json : Incomplete | None = None ,
217
+ json : _JSON | None = None ,
218
218
* ,
219
219
params : _Params | None = ...,
220
220
headers : _HeadersUpdateMapping | None = ...,
@@ -246,7 +246,7 @@ class Session(SessionRedirectMixin):
246
246
stream : bool | None = ...,
247
247
verify : _Verify | None = ...,
248
248
cert : _Cert | None = ...,
249
- json : Incomplete | None = ... ,
249
+ json : _JSON | None = None ,
250
250
) -> Response : ...
251
251
def patch (
252
252
self ,
@@ -265,7 +265,7 @@ class Session(SessionRedirectMixin):
265
265
stream : bool | None = ...,
266
266
verify : _Verify | None = ...,
267
267
cert : _Cert | None = ...,
268
- json : Incomplete | None = ... ,
268
+ json : _JSON | None = None ,
269
269
) -> Response : ...
270
270
def delete (
271
271
self ,
@@ -284,7 +284,7 @@ class Session(SessionRedirectMixin):
284
284
stream : bool | None = ...,
285
285
verify : _Verify | None = ...,
286
286
cert : _Cert | None = ...,
287
- json : Incomplete | None = ... ,
287
+ json : _JSON | None = None ,
288
288
) -> Response : ...
289
289
def send (
290
290
self ,
0 commit comments