mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 04:26:45 +00:00
🎨 isort format code
This commit is contained in:
@ -22,6 +22,6 @@ except Exception:
|
||||
|
||||
from ._bot import Bot as Bot
|
||||
from ._event import Event as Event
|
||||
from ._template import MessageTemplate as MessageTemplate
|
||||
from ._message import Message as Message
|
||||
from ._message import MessageSegment as MessageSegment
|
||||
from ._template import MessageTemplate as MessageTemplate
|
||||
|
@ -2,12 +2,12 @@ import abc
|
||||
import asyncio
|
||||
from functools import partial
|
||||
from typing_extensions import Protocol
|
||||
from typing import Any, Set, Union, Tuple, Optional, TYPE_CHECKING
|
||||
from typing import TYPE_CHECKING, Any, Set, Tuple, Union, Optional
|
||||
|
||||
from nonebot.log import logger
|
||||
from nonebot.config import Config
|
||||
from nonebot.typing import T_CallingAPIHook, T_CalledAPIHook
|
||||
from nonebot.drivers import Driver, HTTPConnection, HTTPResponse
|
||||
from nonebot.typing import T_CalledAPIHook, T_CallingAPIHook
|
||||
from nonebot.drivers import Driver, HTTPResponse, HTTPConnection
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ._event import Event
|
||||
|
@ -1,7 +1,7 @@
|
||||
import abc
|
||||
from copy import deepcopy
|
||||
from dataclasses import dataclass, field, asdict
|
||||
from typing import (Any, List, Dict, Type, Union, TypeVar, Mapping, Generic,
|
||||
from dataclasses import field, asdict, dataclass
|
||||
from typing import (Any, Dict, List, Type, Union, Generic, Mapping, TypeVar,
|
||||
Iterable)
|
||||
|
||||
from ._template import MessageTemplate
|
||||
|
@ -1,8 +1,8 @@
|
||||
import functools
|
||||
import operator
|
||||
import functools
|
||||
from string import Formatter
|
||||
from typing import (Any, Set, List, Type, Tuple, Union, TypeVar, Mapping,
|
||||
Generic, Sequence, TYPE_CHECKING)
|
||||
from typing import (TYPE_CHECKING, Any, Set, List, Type, Tuple, Union, Generic,
|
||||
Mapping, TypeVar, Sequence)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from . import Message
|
||||
|
Reference in New Issue
Block a user