massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Werkzeug / werkzeug / urls.pyi
1 from typing import Any, NamedTuple, Text
2
3 class _URLTuple(NamedTuple):
4     scheme: Any
5     netloc: Any
6     path: Any
7     query: Any
8     fragment: Any
9
10 class BaseURL(_URLTuple):
11     def replace(self, **kwargs): ...
12     @property
13     def host(self): ...
14     @property
15     def ascii_host(self): ...
16     @property
17     def port(self): ...
18     @property
19     def auth(self): ...
20     @property
21     def username(self): ...
22     @property
23     def raw_username(self): ...
24     @property
25     def password(self): ...
26     @property
27     def raw_password(self): ...
28     def decode_query(self, *args, **kwargs): ...
29     def join(self, *args, **kwargs): ...
30     def to_url(self): ...
31     def decode_netloc(self): ...
32     def to_uri_tuple(self): ...
33     def to_iri_tuple(self): ...
34     def get_file_location(self, pathformat: Any | None = ...): ...
35
36 class URL(BaseURL):
37     def encode_netloc(self): ...
38     def encode(self, charset: Text = ..., errors: Text = ...): ...
39
40 class BytesURL(BaseURL):
41     def encode_netloc(self): ...
42     def decode(self, charset: Text = ..., errors: Text = ...): ...
43
44 def url_parse(url, scheme: Any | None = ..., allow_fragments: bool = ...): ...
45 def url_quote(string, charset: Text = ..., errors: Text = ..., safe: str = ..., unsafe: str = ...): ...
46 def url_quote_plus(string, charset: Text = ..., errors: Text = ..., safe: str = ...): ...
47 def url_unparse(components): ...
48 def url_unquote(string, charset: Text = ..., errors: Text = ..., unsafe: str = ...): ...
49 def url_unquote_plus(s, charset: Text = ..., errors: Text = ...): ...
50 def url_fix(s, charset: Text = ...): ...
51 def uri_to_iri(uri, charset: Text = ..., errors: Text = ...): ...
52 def iri_to_uri(iri, charset: Text = ..., errors: Text = ..., safe_conversion: bool = ...): ...
53 def url_decode(
54     s,
55     charset: Text = ...,
56     decode_keys: bool = ...,
57     include_empty: bool = ...,
58     errors: Text = ...,
59     separator: str = ...,
60     cls: Any | None = ...,
61 ): ...
62 def url_decode_stream(
63     stream,
64     charset: Text = ...,
65     decode_keys: bool = ...,
66     include_empty: bool = ...,
67     errors: Text = ...,
68     separator: str = ...,
69     cls: Any | None = ...,
70     limit: Any | None = ...,
71     return_iterator: bool = ...,
72 ): ...
73 def url_encode(
74     obj, charset: Text = ..., encode_keys: bool = ..., sort: bool = ..., key: Any | None = ..., separator: bytes = ...
75 ): ...
76 def url_encode_stream(
77     obj,
78     stream: Any | None = ...,
79     charset: Text = ...,
80     encode_keys: bool = ...,
81     sort: bool = ...,
82     key: Any | None = ...,
83     separator: bytes = ...,
84 ): ...
85 def url_join(base, url, allow_fragments: bool = ...): ...
86
87 class Href:
88     base: Any
89     charset: Text
90     sort: Any
91     key: Any
92     def __init__(self, base: str = ..., charset: Text = ..., sort: bool = ..., key: Any | None = ...): ...
93     def __getattr__(self, name): ...
94     def __call__(self, *path, **query): ...