@@ -151,7 +151,8 @@ class Unmarshaller:
151
151
def end_boolean (self , data : str ) -> None : ...
152
152
def end_int (self , data : str ) -> None : ...
153
153
def end_double (self , data : str ) -> None : ...
154
- def end_bigdecimal (self , data : str ) -> None : ...
154
+ if sys .version_info >= (3 , 6 ):
155
+ def end_bigdecimal (self , data : str ) -> None : ...
155
156
def end_string (self , data : str ) -> None : ...
156
157
def end_array (self , data : str ) -> None : ...
157
158
def end_struct (self , data : str ) -> None : ...
@@ -231,15 +232,15 @@ class Transport:
231
232
def __init__ (self , use_datetime : bool = ..., use_builtin_types : bool = ..., * , headers : Iterable [Tuple [str , str ]] = ...) -> None : ...
232
233
else :
233
234
def __init__ (self , use_datetime : bool = ..., use_builtin_types : bool = ...) -> None : ...
234
- def request (self , host : _HostType , handler : str , request_body : Union [ bytes , Iterable [ bytes ], str ] , verbose : bool = ...) -> Tuple [_Marshallable , ...]: ...
235
- def single_request (self , host : _HostType , handler : str , request_body : Union [ bytes , Iterable [ bytes ], str ] , verbose : bool = ...) -> Tuple [_Marshallable , ...]: ...
235
+ def request (self , host : _HostType , handler : str , request_body : bytes , verbose : bool = ...) -> Tuple [_Marshallable , ...]: ...
236
+ def single_request (self , host : _HostType , handler : str , request_body : bytes , verbose : bool = ...) -> Tuple [_Marshallable , ...]: ...
236
237
def getparser (self ) -> Tuple [ExpatParser , Unmarshaller ]: ...
237
238
def get_host_info (self , host : _HostType ) -> Tuple [str , List [Tuple [str , str ]], Dict [str , str ]]: ...
238
239
def make_connection (self , host : _HostType ) -> http .client .HTTPConnection : ...
239
240
def close (self ) -> None : ...
240
- def send_request (self , host : _HostType , handler : str , request_body : Union [ bytes , Iterable [ bytes ], str ] , debug : bool ) -> http .client .HTTPConnection : ...
241
+ def send_request (self , host : _HostType , handler : str , request_body : bytes , debug : bool ) -> http .client .HTTPConnection : ...
241
242
def send_headers (self , connection : http .client .HTTPConnection , headers : List [Tuple [str , str ]]) -> None : ...
242
- def send_content (self , connection : http .client .HTTPConnection , request_body : Union [ bytes , Iterable [ bytes ], str ] ) -> None : ...
243
+ def send_content (self , connection : http .client .HTTPConnection , request_body : bytes ) -> None : ...
243
244
def parse_response (self , response : http .client .HTTPResponse ) -> Tuple [_Marshallable , ...]: ...
244
245
245
246
class SafeTransport (Transport ):
@@ -259,7 +260,10 @@ class ServerProxy:
259
260
__verbose : bool
260
261
__allow_none : bool
261
262
262
- def __init__ (self , uri , transport : Optional [Transport ] = ..., encoding : Optional [str ] = ..., verbose : bool = ..., allow_none : bool = ..., use_datetime : bool = ..., use_builtin_types : bool = ..., * , headers : Iterable [Tuple [str , str ]] = ..., context : Optional [Any ] = ...) -> None : ...
263
+ if sys .version_info >= (3 , 8 ):
264
+ def __init__ (self , uri , transport : Optional [Transport ] = ..., encoding : Optional [str ] = ..., verbose : bool = ..., allow_none : bool = ..., use_datetime : bool = ..., use_builtin_types : bool = ..., * , headers : Iterable [Tuple [str , str ]] = ..., context : Optional [Any ] = ...) -> None : ...
265
+ else :
266
+ def __init__ (self , uri , transport : Optional [Transport ] = ..., encoding : Optional [str ] = ..., verbose : bool = ..., allow_none : bool = ..., use_datetime : bool = ..., use_builtin_types : bool = ..., * , context : Optional [Any ] = ...) -> None : ...
263
267
def __getattr__ (self , name : str ) -> _Method : ...
264
268
@overload
265
269
def __call__ (self , attr : Literal ["close" ]) -> Callable [[], None ]: ...
0 commit comments