add docstring for BaseResponse.method

This commit is contained in:
Alex Root Junior 2017-08-09 05:23:36 +03:00
parent 779f2e73a0
commit e66194dbf3

View file

@ -104,7 +104,14 @@ class BaseResponse:
"""
Base class for webhook responses.
"""
method = None
@property
def method(self) -> str:
"""
In all subclasses of that class you need to override this property
:return: str
"""
raise NotImplementedError
def prepare(self) -> typing.Dict:
"""