From 31a68d5f8aac32b25778d120be8c25de2cd3d3d3 Mon Sep 17 00:00:00 2001 From: Desiders <47452083+Desiders@users.noreply.github.com> Date: Sun, 6 Nov 2022 00:06:07 +0300 Subject: [PATCH] Removed an old now non-working feature --- aiogram/dispatcher/router.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aiogram/dispatcher/router.py b/aiogram/dispatcher/router.py index 9bb12cfd..ba8f389c 100644 --- a/aiogram/dispatcher/router.py +++ b/aiogram/dispatcher/router.py @@ -179,12 +179,10 @@ class Router: self._parent_router = router router.sub_routers.append(self) - def include_router(self, router: Union[Router, str]) -> Router: + def include_router(self, router: Router) -> Router: """ Attach another router. - Can be attached directly or by import string in format ":" - :param router: :return: """