werkzeug: Mark BaseRequest.data as property (#1785)

This commit is contained in:
Sebastian Rittau
2017-12-15 05:35:29 +01:00
committed by Jelle Zijlstra
parent 7c4765357a
commit 398401baee
2 changed files with 4 additions and 2 deletions

View File

@@ -36,7 +36,8 @@ class BaseRequest:
def stream(self): ...
input_stream = ... # type: Any
args = ... # type: ImmutableMultiDict
def data(self): ...
@property
def data(self) -> str: ...
def get_data(self, cache: bool = ..., as_text: bool = ..., parse_form_data: bool = ...) -> str: ...
form = ... # type: ImmutableMultiDict
values = ... # type: CombinedMultiDict

View File

@@ -36,7 +36,8 @@ class BaseRequest:
def stream(self): ...
input_stream = ... # type: Any
args = ... # type: ImmutableMultiDict
def data(self): ...
@property
def data(self) -> bytes: ...
def get_data(self, cache: bool = ..., as_text: bool = ..., parse_form_data: bool = ...) -> bytes: ...
form = ... # type: ImmutableMultiDict
values = ... # type: CombinedMultiDict