erg/crates/erg_compiler/lib/pystd/urllib.d/parse.d.er
2024-09-26 11:34:15 +09:00

21 lines
534 B
Python

.urlparse: (urlstring: Str, scheme := Str, allow_fragments := Bool) -> NamedTuple {
.scheme = Str;
.netloc = Str;
.path = Str;
.params = Str;
.query = Str;
.fragment = Str;
.username = Str or NoneType;
.password = Str or NoneType;
.hostname = Str or NoneType;
.port = Int or NoneType;
}
.parse_qs: (
qs: Str,
keep_blank_values := Bool,
strict_parsing := Bool,
encoding := Str,
errors := Str,
max_num_fields := Nat or NoneType,
separator := Str,
) -> {Str: [Str; _]}