@@ -47,10 +47,10 @@ class Request(object):
47
47
48
48
class OpenerDirector (object ):
49
49
def add_handler (self , handler : BaseHandler ) -> None : ...
50
- def open (self , url : Union [Request , _string ], data : Optional [_string ] = ..., timeout : int = ...): ...
50
+ def open (self , url : Union [Request , _string ], data : Optional [_string ] = ..., timeout : Optional [ float ] = ...): ...
51
51
def error (self , proto : _string , * args : Any ): ...
52
52
53
- def urlopen (url : Union [Request , _string ], data : Optional [_string ] = ..., timeout : int = ...,
53
+ def urlopen (url : Union [Request , _string ], data : Optional [_string ] = ..., timeout : Optional [ float ] = ...,
54
54
cafile : Optional [_string ] = ..., capath : Optional [_string ] = ..., cadefault : bool = ...,
55
55
context : Optional [ssl .SSLContext ] = ...): ...
56
56
def install_opener (opener : OpenerDirector ) -> None : ...
@@ -161,7 +161,7 @@ class FTPHandler(BaseHandler):
161
161
162
162
class CacheFTPHandler (FTPHandler ):
163
163
def __init__ (self ) -> None : ...
164
- def setTimeout (self , t ): ...
164
+ def setTimeout (self , t : Optional [ float ] ): ...
165
165
def setMaxConns (self , m ): ...
166
166
def check_cache (self ): ...
167
167
def clear_cache (self ): ...
0 commit comments