Skip to content

Commit 0e99547

Browse files
authored
Replace dict[...] to typing.Dict[]
1 parent fdf3b49 commit 0e99547

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pyrogram/dispatcher.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

1919
import asyncio
20+
from collections import OrderedDict
2021
import inspect
2122
import logging
22-
from collections import OrderedDict
23+
from typing import Dict
2324

2425
import pyrogram
2526
from pyrogram import utils
@@ -407,8 +408,8 @@ async def handle_update_handler_exception(
407408
exc: Exception,
408409
update_handler: Handler,
409410
update: pyrogram.raw.base.Update,
410-
users: dict[int, pyrogram.raw.base.User],
411-
chats: dict[int, pyrogram.raw.base.Chat]
411+
users: Dict[int, pyrogram.raw.base.User],
412+
chats: Dict[int, pyrogram.raw.base.Chat]
412413
) -> None:
413414
handled = False
414415
try:

0 commit comments

Comments
 (0)