Update router.py

This commit is contained in:
sheldy 2023-02-12 01:15:15 +02:00 committed by GitHub
parent 6da4351531
commit 9550f6a3b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,7 +179,7 @@ class Router:
self._parent_router = router
router.sub_routers.append(self)
def include_routers(self, *routers) -> Router:
def include_routers(self, *routers: Router) -> None:
if not routers:
raise ValueError("At least one router must be provided")
for router in routers: