From e66194dbf39700ad397a4db18a709b964a0b5125 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Wed, 9 Aug 2017 05:23:36 +0300 Subject: [PATCH] add docstring for BaseResponse.method --- aiogram/dispatcher/webhook.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/aiogram/dispatcher/webhook.py b/aiogram/dispatcher/webhook.py index cda7f4e7..06e9197d 100644 --- a/aiogram/dispatcher/webhook.py +++ b/aiogram/dispatcher/webhook.py @@ -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: """