mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 13:32:26 +08:00
Fix werkzeug.UserAgentMixin annotation (#2881)
This commit is contained in:
committed by
Sebastian Rittau
parent
168a968564
commit
0f1e453606
4
third_party/2and3/werkzeug/wrappers.pyi
vendored
4
third_party/2and3/werkzeug/wrappers.pyi
vendored
@@ -10,6 +10,7 @@ from .datastructures import (
|
||||
MultiDict, ImmutableTypeConversionDict, HeaderSet,
|
||||
Accept, MIMEAccept, CharsetAccept, LanguageAccept,
|
||||
)
|
||||
from .useragents import UserAgent
|
||||
|
||||
class BaseRequest:
|
||||
charset = ... # type: str
|
||||
@@ -151,7 +152,8 @@ class ETagRequestMixin:
|
||||
def range(self): ...
|
||||
|
||||
class UserAgentMixin:
|
||||
def user_agent(self): ...
|
||||
@property
|
||||
def user_agent(self) -> UserAgent: ...
|
||||
|
||||
class AuthorizationMixin:
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user