feat: add urlparse module with ParseResult class definition

This commit is contained in:
Бакыт Ниязалиев 2025-06-11 22:44:38 +07:00
parent ee73482f38
commit 8b4a370a75
2 changed files with 24 additions and 0 deletions

View File

View File

@ -0,0 +1,24 @@
class ParseResult:
scheme: str
userinfo: str
host: str
port: int | None
path: str
query: str | None
fragment: str | None
@property
def authority(self) -> str: ...
@property
def netloc(self) -> str: ...
def __str__(self) -> str: ...
def __new__(
cls,
scheme: str,
userinfo: str,
host: str,
port: int | None,
path: str,
query: str | None,
fragment: str | None,
) -> ParseResult: ...