add pycln to auto remove unused imports (#1481)

This commit is contained in:
Ju4tCode
2022-12-17 17:04:38 +08:00
committed by GitHub
parent 932f50d1fb
commit a5d26b7747
6 changed files with 1539 additions and 1417 deletions

View File

@ -9,7 +9,6 @@ FrontMatter:
description: nonebot.config 模块
"""
import os
from pathlib import Path
from datetime import timedelta
from ipaddress import IPv4Address
from typing import TYPE_CHECKING, Any, Set, Dict, Tuple, Union, Mapping, Optional

View File

@ -12,7 +12,8 @@ from pydantic import BaseModel
from nonebot.matcher import Matcher
from . import _plugins as plugins # FIXME: backport for nonebug
# FIXME: backport for nonebug
from . import _plugins as plugins # nopycln: import
if TYPE_CHECKING:
from .manager import PluginManager