Remove unused imports
- routes.py: Remove unused re, hashlib, ArtifactResponse imports - storage.py: Remove unused ABC, abstractmethod imports (using Protocol instead)
This commit is contained in:
@@ -17,9 +17,7 @@ from sqlalchemy.orm import Session
|
|||||||
from sqlalchemy import or_, func, text
|
from sqlalchemy import or_, func, text
|
||||||
from typing import List, Optional, Literal
|
from typing import List, Optional, Literal
|
||||||
import math
|
import math
|
||||||
import re
|
|
||||||
import io
|
import io
|
||||||
import hashlib
|
|
||||||
|
|
||||||
from .database import get_db
|
from .database import get_db
|
||||||
from .storage import (
|
from .storage import (
|
||||||
@@ -53,7 +51,6 @@ from .schemas import (
|
|||||||
TagSummary,
|
TagSummary,
|
||||||
PACKAGE_FORMATS,
|
PACKAGE_FORMATS,
|
||||||
PACKAGE_PLATFORMS,
|
PACKAGE_PLATFORMS,
|
||||||
ArtifactResponse,
|
|
||||||
ArtifactDetailResponse,
|
ArtifactDetailResponse,
|
||||||
ArtifactTagInfo,
|
ArtifactTagInfo,
|
||||||
PackageArtifactResponse,
|
PackageArtifactResponse,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
import logging
|
import logging
|
||||||
from abc import ABC, abstractmethod
|
|
||||||
from typing import (
|
from typing import (
|
||||||
BinaryIO,
|
BinaryIO,
|
||||||
Tuple,
|
Tuple,
|
||||||
|
|||||||
Reference in New Issue
Block a user