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:
@@ -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__)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user