erg/crates/erg_compiler/lib/pystd/urllib.d/robotparser.d.er
2023-05-03 00:54:05 +09:00

11 lines
503 B
Python

.Entry: ClassType
.Entry.
req_rate: { .requests = Int; .seconds = Int } or NoneType
.RobotFileParser!: ClassType
.RobotFileParser!.
__call__: (url := Str) -> .RobotFileParser!
set_url!: (self: RefMut(.RobotFileParser!), url: Str) => NoneType
read!: (self: RefMut(.RobotFileParser!)) => NoneType
parse!: (self: RefMut(.RobotFileParser!), lines: [Str; _]) => NoneType
request_rate: (self: Ref(.RobotFileParser!), useragent: Str) -> { .requests = Int; .seconds = Int } or NoneType