mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 22:18:28 +08:00
Drop Python 3.8 branches (#13776)
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
import sys
|
||||
from collections.abc import Iterable, Mapping
|
||||
from types import GenericAlias
|
||||
from typing import Any, Generic, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from types import GenericAlias
|
||||
|
||||
__all__ = ["CookieError", "BaseCookie", "SimpleCookie"]
|
||||
|
||||
_DataType: TypeAlias = str | Mapping[str, str | Morsel[Any]]
|
||||
@@ -44,8 +41,7 @@ class Morsel(dict[str, Any], Generic[_T]):
|
||||
def OutputString(self, attrs: list[str] | None = None) -> str: ...
|
||||
def __eq__(self, morsel: object) -> bool: ...
|
||||
def __setitem__(self, K: str, V: Any) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
class BaseCookie(dict[str, Morsel[_T]], Generic[_T]):
|
||||
def __init__(self, input: _DataType | None = None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user