mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix stubtest issues (#5360)
* Fix some stubtest issues * Remove MADV_SOFT_OFFLINE
This commit is contained in:
@@ -97,7 +97,6 @@ class BaseHandler:
|
||||
parent: OpenerDirector
|
||||
def add_parent(self, parent: OpenerDirector) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def http_error_nnn(self, req: Request, fp: IO[str], code: int, msg: int, headers: Mapping[str, str]) -> _UrlopenRet: ...
|
||||
|
||||
class HTTPDefaultErrorHandler(BaseHandler):
|
||||
def http_error_default(
|
||||
|
||||
@@ -10,7 +10,7 @@ class RobotFileParser:
|
||||
def set_url(self, url: str) -> None: ...
|
||||
def read(self) -> None: ...
|
||||
def parse(self, lines: Iterable[str]) -> None: ...
|
||||
def can_fetch(self, user_agent: str, url: str) -> bool: ...
|
||||
def can_fetch(self, useragent: str, url: str) -> bool: ...
|
||||
def mtime(self) -> int: ...
|
||||
def modified(self) -> None: ...
|
||||
def crawl_delay(self, useragent: str) -> Optional[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user