mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
Add type hints to werkzeug's AcceptMixin (#2349)
* Add type hints to werkzeug's AcceptMixin * Fix typo
This commit is contained in:
committed by
Jelle Zijlstra
parent
4e40b035c8
commit
1c8c6ec7d9
15
third_party/2and3/werkzeug/wrappers.pyi
vendored
15
third_party/2and3/werkzeug/wrappers.pyi
vendored
@@ -8,6 +8,7 @@ from wsgiref.types import WSGIEnvironment, InputStream
|
||||
from .datastructures import (
|
||||
Authorization, CombinedMultiDict, EnvironHeaders, Headers, ImmutableMultiDict,
|
||||
MultiDict, TypeConversionDict, HeaderSet,
|
||||
Accept, MIMEAccept, CharsetAccept, LanguageAccept,
|
||||
)
|
||||
|
||||
class BaseRequest:
|
||||
@@ -120,11 +121,15 @@ class BaseResponse:
|
||||
def get_wsgi_response(self, environ): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class AcceptMixin:
|
||||
def accept_mimetypes(self): ...
|
||||
def accept_charsets(self): ...
|
||||
def accept_encodings(self): ...
|
||||
def accept_languages(self): ...
|
||||
class AcceptMixin(object):
|
||||
@property
|
||||
def accept_mimetypes(self) -> MIMEAccept: ...
|
||||
@property
|
||||
def accept_charsets(self) -> CharsetAccept: ...
|
||||
@property
|
||||
def accept_encodings(self) -> Accept: ...
|
||||
@property
|
||||
def accept_languages(self) -> LanguageAccept: ...
|
||||
|
||||
class ETagRequestMixin:
|
||||
def cache_control(self): ...
|
||||
|
||||
Reference in New Issue
Block a user