Skip to content

Commit

Permalink
Removed an old now non-working feature from documentation (#1060)
Browse files Browse the repository at this point in the history
* Removed an old now non-working feature

* Create 1060.doc.rst

* Removed unused `typing.Union`
  • Loading branch information
Desiders committed Nov 6, 2022
1 parent b287551 commit 08d35ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES/1060.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed an old now non-working feature
6 changes: 2 additions & 4 deletions aiogram/dispatcher/router.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Any, Dict, Final, Generator, List, Optional, Set, Union
from typing import Any, Dict, Final, Generator, List, Optional, Set

from ..types import TelegramObject
from .event.bases import REJECTED, UNHANDLED
Expand Down Expand Up @@ -179,12 +179,10 @@ def parent_router(self, router: Router) -> None:
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 "<module>:<attribute>"
:param router:
:return:
"""
Expand Down

0 comments on commit 08d35ed

Please sign in to comment.