mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-29 11:16:44 +08:00
Drop Python 3.8 branches (#13776)
This commit is contained in:
+3
-12
@@ -1,11 +1,9 @@
|
||||
import sys
|
||||
from collections.abc import Callable, Iterable, Mapping, Sequence
|
||||
from types import GenericAlias
|
||||
from typing import Any, AnyStr, Generic, Literal, NamedTuple, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from types import GenericAlias
|
||||
|
||||
__all__ = [
|
||||
"urlparse",
|
||||
"urlunparse",
|
||||
@@ -55,8 +53,7 @@ class _NetlocResultMixinBase(Generic[AnyStr]):
|
||||
def hostname(self) -> AnyStr | None: ...
|
||||
@property
|
||||
def port(self) -> int | None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ...
|
||||
class _NetlocResultMixinBytes(_NetlocResultMixinBase[bytes], _ResultMixinBytes): ...
|
||||
@@ -127,13 +124,7 @@ def quote_from_bytes(bs: bytes | bytearray, safe: str | Iterable[int] = "/") ->
|
||||
def quote_plus(string: str, safe: str | Iterable[int] = "", encoding: str | None = None, errors: str | None = None) -> str: ...
|
||||
@overload
|
||||
def quote_plus(string: bytes | bytearray, safe: str | Iterable[int] = "") -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
def unquote(string: str | bytes, encoding: str = "utf-8", errors: str = "replace") -> str: ...
|
||||
|
||||
else:
|
||||
def unquote(string: str, encoding: str = "utf-8", errors: str = "replace") -> str: ...
|
||||
|
||||
def unquote(string: str | bytes, encoding: str = "utf-8", errors: str = "replace") -> str: ...
|
||||
def unquote_to_bytes(string: str | bytes | bytearray) -> bytes: ...
|
||||
def unquote_plus(string: str, encoding: str = "utf-8", errors: str = "replace") -> str: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user