codekingpro/portable-devtools
114k
1from __future__ import annotations2 3import typing as t4 5from .accept import Accept as Accept6from .accept import CharsetAccept as CharsetAccept7from .accept import LanguageAccept as LanguageAccept8from .accept import MIMEAccept as MIMEAccept9from .auth import Authorization as Authorization10from .auth import WWWAuthenticate as WWWAuthenticate11from .cache_control import RequestCacheControl as RequestCacheControl12from .cache_control import ResponseCacheControl as ResponseCacheControl13from .csp import ContentSecurityPolicy as ContentSecurityPolicy14from .etag import ETags as ETags15from .file_storage import FileMultiDict as FileMultiDict16from .file_storage import FileStorage as FileStorage17from .headers import EnvironHeaders as EnvironHeaders18from .headers import Headers as Headers19from .mixins import ImmutableDictMixin as ImmutableDictMixin20from .mixins import ImmutableHeadersMixin as ImmutableHeadersMixin21from .mixins import ImmutableListMixin as ImmutableListMixin22from .mixins import ImmutableMultiDictMixin as ImmutableMultiDictMixin23from .mixins import UpdateDictMixin as UpdateDictMixin24from .range import ContentRange as ContentRange25from .range import IfRange as IfRange26from .range import Range as Range27from .structures import CallbackDict as CallbackDict28from .structures import CombinedMultiDict as CombinedMultiDict29from .structures import HeaderSet as HeaderSet30from .structures import ImmutableDict as ImmutableDict31from .structures import ImmutableList as ImmutableList32from .structures import ImmutableMultiDict as ImmutableMultiDict33from .structures import ImmutableTypeConversionDict as ImmutableTypeConversionDict34from .structures import iter_multi_items as iter_multi_items35from .structures import MultiDict as MultiDict36from .structures import TypeConversionDict as TypeConversionDict37 38 39def __getattr__(name: str) -> t.Any:40 import warnings41 42 if name == "OrderedMultiDict":43 from .structures import _OrderedMultiDict44 45 warnings.warn(46 "'OrderedMultiDict' is deprecated and will be removed in Werkzeug"47 " 3.2. Use 'MultiDict' instead.",48 DeprecationWarning,49 stacklevel=2,50 )51 return _OrderedMultiDict52 53 if name == "ImmutableOrderedMultiDict":54 from .structures import _ImmutableOrderedMultiDict55 56 warnings.warn(57 "'OrderedMultiDict' is deprecated and will be removed in Werkzeug"58 " 3.2. Use 'ImmutableMultiDict' instead.",59 DeprecationWarning,60 stacklevel=2,61 )62 return _ImmutableOrderedMultiDict63 64 raise AttributeError(name)65 