diff --git a/stdlib/2.7/robotparser.pyi b/stdlib/2.7/robotparser.pyi new file mode 100644 index 000000000..403039ae9 --- /dev/null +++ b/stdlib/2.7/robotparser.pyi @@ -0,0 +1,7 @@ +class RobotFileParser: + def set_url(self, url: str): ... + def read(self): ... + def parse(self, lines: str): ... + def can_fetch(self, user_agent: str, url: str): ... + def mtime(self): ... + def modified(self): ... diff --git a/stdlib/3/urllib/robotparser.pyi b/stdlib/3/urllib/robotparser.pyi new file mode 100644 index 000000000..403039ae9 --- /dev/null +++ b/stdlib/3/urllib/robotparser.pyi @@ -0,0 +1,7 @@ +class RobotFileParser: + def set_url(self, url: str): ... + def read(self): ... + def parse(self, lines: str): ... + def can_fetch(self, user_agent: str, url: str): ... + def mtime(self): ... + def modified(self): ...