chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version (#2419)

This commit is contained in:
Bowen Liang
2024-02-09 15:21:33 +08:00
committed by GitHub
parent 589099a005
commit 063191889d
246 changed files with 912 additions and 937 deletions

View File

@@ -1,6 +1,5 @@
import logging
import time
from typing import List
import click
from celery import shared_task
@@ -11,7 +10,7 @@ from models.dataset import Dataset, Document, DocumentSegment
@shared_task(queue='dataset')
def clean_notion_document_task(document_ids: List[str], dataset_id: str):
def clean_notion_document_task(document_ids: list[str], dataset_id: str):
"""
Clean document when document deleted.
:param document_ids: document ids