change typing manage

This commit is contained in:
yanyongyu
2020-08-07 17:05:08 +08:00
parent 950dbb1115
commit f2b6f08599
12 changed files with 20 additions and 13 deletions

View File

@ -1,6 +1,13 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Callable, Awaitable
from types import ModuleType
from typing import TYPE_CHECKING
from typing import Any, Set, List, Dict, Type, Tuple, Mapping
from typing import Union, Optional, Iterable, Callable, Awaitable
if TYPE_CHECKING:
from nonebot.adapters import BaseBot as Bot
from nonebot.event import Event
Handler = Callable[["Bot", "Event", dict], Awaitable[None]]