mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add annotations to urrlib3.util.url (#8448)
This commit is contained in:
@@ -4,20 +4,29 @@ from .. import exceptions
|
||||
|
||||
LocationParseError = exceptions.LocationParseError
|
||||
|
||||
url_attrs: Any
|
||||
url_attrs: list[str]
|
||||
|
||||
class Url:
|
||||
slots: Any
|
||||
def __new__(cls, scheme=..., auth=..., host=..., port=..., path=..., query=..., fragment=...): ...
|
||||
def __new__(
|
||||
cls,
|
||||
scheme: str | None = ...,
|
||||
auth: str | None = ...,
|
||||
host: str | None = ...,
|
||||
port: str | None = ...,
|
||||
path: str | None = ...,
|
||||
query: str | None = ...,
|
||||
fragment: str | None = ...,
|
||||
): ...
|
||||
@property
|
||||
def hostname(self): ...
|
||||
def hostname(self) -> str | None: ...
|
||||
@property
|
||||
def request_uri(self): ...
|
||||
def request_uri(self) -> str: ...
|
||||
@property
|
||||
def netloc(self): ...
|
||||
def netloc(self) -> str | None: ...
|
||||
@property
|
||||
def url(self): ...
|
||||
def url(self) -> str: ...
|
||||
|
||||
def split_first(s, delims): ...
|
||||
def parse_url(url): ...
|
||||
def parse_url(url: str) -> Url: ...
|
||||
def get_host(url): ...
|
||||
|
||||
Reference in New Issue
Block a user