Fix stubtest issues (#5360)

* Fix some stubtest issues

* Remove MADV_SOFT_OFFLINE
This commit is contained in:
hatal175
2021-05-07 19:10:03 +03:00
committed by GitHub
parent e3f510e896
commit 2dc02ae8a9
8 changed files with 34 additions and 33 deletions

View File

@@ -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]: ...