diff --git a/stdlib/3/urllib/request.pyi b/stdlib/3/urllib/request.pyi index a18210a59..7dd954d4b 100644 --- a/stdlib/3/urllib/request.pyi +++ b/stdlib/3/urllib/request.pyi @@ -21,7 +21,7 @@ class _HTTPResponse(HTTPResponse): def urlopen( url: Union[str, Request], data: Optional[bytes] = ..., - timeout: float = ..., *, cafile: Optional[str] = ..., + timeout: Optional[float] = ..., *, cafile: Optional[str] = ..., capath: Optional[str] = ..., cadefault: bool = ..., context: Optional[ssl.SSLContext] = ... ) -> _UrlopenRet: ... @@ -71,7 +71,7 @@ class OpenerDirector: addheaders: List[Tuple[str, str]] def add_handler(self, handler: BaseHandler) -> None: ... def open(self, url: Union[str, Request], data: Optional[bytes] = ..., - timeout: float = ...) -> _UrlopenRet: ... + timeout: Optional[float] = ...) -> _UrlopenRet: ... def error(self, proto: str, *args: Any) -> _UrlopenRet: ...