Chore: Reduce imports for a slight memory improvement (#9217)

This commit is contained in:
Trenton H 2025-02-24 15:06:14 -08:00 committed by GitHub
parent 3104417076
commit 827fcba277
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 71 additions and 26 deletions

View file

@ -1,8 +1,11 @@
from __future__ import annotations
import hashlib
import itertools
import logging
import tempfile
from pathlib import Path
from typing import TYPE_CHECKING
from typing import Literal
from celery import chain
@ -10,7 +13,6 @@ from celery import chord
from celery import group
from celery import shared_task
from django.conf import settings
from django.contrib.auth.models import User
from django.db.models import Q
from django.utils import timezone
@ -29,6 +31,9 @@ from documents.tasks import bulk_update_documents
from documents.tasks import consume_file
from documents.tasks import update_document_content_maybe_archive_file
if TYPE_CHECKING:
from django.contrib.auth.models import User
logger: logging.Logger = logging.getLogger("paperless.bulk_edit")