@@ -74,7 +74,7 @@ class BaseHandler:
74
74
parent = ... # type: OpenerDirector
75
75
def add_parent (self , parent : OpenerDirector ) -> None : ...
76
76
def close (self ) -> None : ...
77
- def http_error_nnn (req : Request , fp : IO [str ], code : int , msg : int ,
77
+ def http_error_nnn (self , req : Request , fp : IO [str ], code : int , msg : int ,
78
78
hdrs : Mapping [str , str ]) -> _UrlopenRet : ...
79
79
80
80
class HTTPDefaultErrorHandler (BaseHandler ): ...
@@ -117,9 +117,9 @@ if sys.version_info >= (3, 5):
117
117
def add_password (self , realm : str , uri : Union [str , Sequence [str ]],
118
118
user : str , passwd : str ,
119
119
is_authenticated : bool = ...) -> None : ...
120
- def update_authenticated (uri : Union [str , Sequence [str ]],
120
+ def update_authenticated (self , uri : Union [str , Sequence [str ]],
121
121
is_authenticated : bool = ...) -> None : ...
122
- def is_authenticated (authuri : str ) -> bool : ...
122
+ def is_authenticated (self , authuri : str ) -> bool : ...
123
123
124
124
class AbstractBasicAuthHandler :
125
125
def __init__ (self ,
@@ -191,7 +191,7 @@ class URLopener:
191
191
def open (self , fullurl : str , data : Optional [bytes ] = ...) -> _UrlopenRet : ...
192
192
def open_unknown (self , fullurl : str ,
193
193
data : Optional [bytes ] = ...) -> _UrlopenRet : ...
194
- def retrieve (url : str , filename : Optional [str ] = ...,
194
+ def retrieve (self , url : str , filename : Optional [str ] = ...,
195
195
reporthook : Optional [Callable [[int , int , int ], None ]] = ...,
196
196
data : Optional [bytes ] = ...) -> Tuple [str , Optional [Message ]]: ...
197
197
0 commit comments