nonebot2/nonebot/typing.py

14 lines
402 B
Python
Raw Normal View History

2020-06-30 10:13:58 +08:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
2018-10-16 01:03:50 +08:00
2020-08-07 17:05:08 +08:00
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
2020-06-30 10:13:58 +08:00
Handler = Callable[["Bot", "Event", dict], Awaitable[None]]