fix(platforms): ruff I001 — drop unused __future__ import; switch __init__ to per-module imports for clean isort ordering

This commit is contained in:
2026-05-27 19:52:50 -04:00
parent abafc3265e
commit b447c42853
2 changed files with 12 additions and 17 deletions
+12 -15
View File
@@ -13,30 +13,27 @@ URL patterns match GS exactly so the existing browser extension
hits FC unmodified. hits FC unmodified.
""" """
from . import (
deviantart,
discord,
hentaifoundry,
patreon,
pixiv,
subscribestar,
)
from .base import ( from .base import (
DEFAULT_DESCRIPTION_KEYS, DEFAULT_DESCRIPTION_KEYS,
DEFAULT_EXTERNAL_POST_ID_KEYS, DEFAULT_EXTERNAL_POST_ID_KEYS,
PlatformInfo, PlatformInfo,
) )
from .deviantart import INFO as _DEVIANTART
from .discord import INFO as _DISCORD
from .hentaifoundry import INFO as _HENTAIFOUNDRY
from .patreon import INFO as _PATREON
from .pixiv import INFO as _PIXIV
from .subscribestar import INFO as _SUBSCRIBESTAR
PLATFORMS: dict[str, PlatformInfo] = { PLATFORMS: dict[str, PlatformInfo] = {
info.key: info info.key: info
for info in ( for info in (
patreon.INFO, _PATREON,
subscribestar.INFO, _SUBSCRIBESTAR,
hentaifoundry.INFO, _HENTAIFOUNDRY,
discord.INFO, _DISCORD,
pixiv.INFO, _PIXIV,
deviantart.INFO, _DEVIANTART,
) )
} }
-2
View File
@@ -12,8 +12,6 @@ materialization, and the /api/platforms response pick it up
automatically. automatically.
""" """
from __future__ import annotations
from collections.abc import Callable from collections.abc import Callable
from dataclasses import dataclass from dataclasses import dataclass
from typing import Literal from typing import Literal