style: keep parent-package imports ahead of sibling imports

Matches the layout used by the other service modules; no behaviour change.
This commit is contained in:
Will Miao
2026-10-25 19:43:01 +08:00
parent 125f7ab856
commit bf63e5d62d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,11 +7,11 @@ import logging
import asyncio
from copy import deepcopy
from typing import Any, Optional, Dict, Tuple, List, cast
from ..utils.constants import is_empty_placeholder_hash
from .connectivity_guard import is_expected_offline_error
from .model_metadata_provider import CivArchiveModelMetadataProvider, ModelMetadataProviderManager
from .downloader import get_downloader
from .errors import RateLimitError
from ..utils.constants import is_empty_placeholder_hash
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -4,9 +4,9 @@ import json
import logging
import random
from typing import Optional, Dict, Tuple, Any, List, Sequence
from ..utils.constants import is_empty_placeholder_hash
from .downloader import get_downloader
from .errors import RateLimitError, ResourceNotFoundError
from ..utils.constants import is_empty_placeholder_hash
try:
from bs4 import BeautifulSoup
+1 -1
View File
@@ -46,6 +46,7 @@ import os
import re
from typing import TYPE_CHECKING, Any, Iterable, Mapping, Optional
from ...utils.constants import is_empty_placeholder_hash
from .base import (
GROUP_PREFIXES,
ModelCardContext,
@@ -57,7 +58,6 @@ from .base import (
fetch_text,
filter_weight_files,
)
from ...utils.constants import is_empty_placeholder_hash
if TYPE_CHECKING: # pragma: no cover - typing only
from .base import ModelSourceCache