1
1
import datetime
2
- from _typeshed import Unused
2
+ from _typeshed import Incomplete , Unused
3
3
from collections .abc import Callable , Iterator
4
4
from json import JSONDecoder
5
5
from typing import Any
@@ -41,10 +41,10 @@ super_len = utils.super_len
41
41
to_native_string = utils .to_native_string
42
42
codes = status_codes .codes
43
43
44
- REDIRECT_STATI : Any
45
- DEFAULT_REDIRECT_LIMIT : Any
46
- CONTENT_CHUNK_SIZE : Any
47
- ITER_CHUNK_SIZE : Any
44
+ REDIRECT_STATI : Incomplete
45
+ DEFAULT_REDIRECT_LIMIT : Incomplete
46
+ CONTENT_CHUNK_SIZE : Incomplete
47
+ ITER_CHUNK_SIZE : Incomplete
48
48
49
49
class RequestEncodingMixin :
50
50
@property
@@ -55,16 +55,16 @@ class RequestHooksMixin:
55
55
def deregister_hook (self , event , hook ): ...
56
56
57
57
class Request (RequestHooksMixin ):
58
- hooks : Any
59
- method : Any
60
- url : Any
61
- headers : Any
62
- files : Any
63
- data : Any
64
- json : Any
65
- params : Any
66
- auth : Any
67
- cookies : Any
58
+ hooks : Incomplete
59
+ method : Incomplete
60
+ url : Incomplete
61
+ headers : Incomplete
62
+ files : Incomplete
63
+ data : Incomplete
64
+ json : Incomplete
65
+ params : Incomplete
66
+ auth : Incomplete
67
+ cookies : Incomplete
68
68
def __init__ (
69
69
self ,
70
70
method = None ,
@@ -85,7 +85,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
85
85
url : str | None
86
86
headers : CaseInsensitiveDict [str ]
87
87
body : bytes | str | None
88
- hooks : Any
88
+ hooks : Incomplete
89
89
def __init__ (self ) -> None : ...
90
90
def prepare (
91
91
self ,
@@ -111,11 +111,11 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
111
111
def prepare_hooks (self , hooks ) -> None : ...
112
112
113
113
class Response :
114
- __attrs__ : Any
114
+ __attrs__ : Incomplete
115
115
_content : bytes | None # undocumented
116
116
status_code : int
117
117
headers : CaseInsensitiveDict [str ]
118
- raw : Any
118
+ raw : Incomplete
119
119
url : str
120
120
encoding : str | None
121
121
history : list [Response ]
@@ -139,10 +139,10 @@ class Response:
139
139
def is_permanent_redirect (self ) -> bool : ...
140
140
@property
141
141
def apparent_encoding (self ) -> str : ...
142
- def iter_content (self , chunk_size : int | None = 1 , decode_unicode : bool = False ) -> Iterator [Any ]: ...
142
+ def iter_content (self , chunk_size : int | None = 1 , decode_unicode : bool = False ) -> Iterator [Incomplete ]: ...
143
143
def iter_lines (
144
144
self , chunk_size : int | None = 512 , decode_unicode : bool = False , delimiter : str | bytes | None = None
145
- ) -> Iterator [Any ]: ...
145
+ ) -> Iterator [Incomplete ]: ...
146
146
@property
147
147
def content (self ) -> bytes : ...
148
148
@property
@@ -159,6 +159,6 @@ class Response:
159
159
** kwds : Any ,
160
160
) -> Any : ...
161
161
@property
162
- def links (self ) -> dict [Any , Any ]: ...
162
+ def links (self ) -> dict [Incomplete , Incomplete ]: ...
163
163
def raise_for_status (self ) -> None : ...
164
164
def close (self ) -> None : ...
0 commit comments