Skip to content

Commit

Permalink
refactor: group imports from same package (#2)
Browse files Browse the repository at this point in the history
Imports for the same package are scattered and not grouped together. It is recommended to keep the imports from the same package together. It makes the code easier to read.

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored and wling-art committed Jan 16, 2024
1 parent 29e3703 commit d351181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/plugins/nonebot_plugin_setu_now/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, Union
from typing import Annotated, Any, Any, Dict, Union, Union
from nonebot.adapters.onebot.v11.permission import GROUP_ADMIN
from nonebot.permission import SUPERUSER
from nonebot import on_command, on_regex, require
Expand Down Expand Up @@ -28,7 +28,6 @@
from nonebot_plugin_tortoise_orm import add_model
from PIL import UnidentifiedImageError
from pathlib import Path
from typing import Any, Union, Annotated
from re import I, sub
import asyncio

Expand Down
3 changes: 1 addition & 2 deletions src/plugins/nonebot_plugin_wordcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from nonebot.permission import SUPERUSER
from nonebot.params import Arg, Depends
from nonebot.adapters import Bot, Event, Message
from nonebot import get_driver
from nonebot import get_driver, require
from arclet.alconna.arparma import Arparma
from arclet.alconna import ArparmaBehavior
import nonebot_plugin_saa as saa
Expand All @@ -41,7 +41,6 @@
from io import BytesIO
from datetime import datetime, timedelta
import re
from nonebot import require

require("nonebot_plugin_apscheduler")
require("nonebot_plugin_alconna")
Expand Down

0 comments on commit d351181

Please sign in to comment.