chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version (#2419)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import datetime
|
||||
import logging
|
||||
import time
|
||||
from typing import List, Optional
|
||||
from typing import Optional
|
||||
|
||||
import click
|
||||
from celery import shared_task
|
||||
@@ -15,7 +15,7 @@ from models.dataset import DocumentSegment
|
||||
|
||||
|
||||
@shared_task(queue='dataset')
|
||||
def create_segment_to_index_task(segment_id: str, keywords: Optional[List[str]] = None):
|
||||
def create_segment_to_index_task(segment_id: str, keywords: Optional[list[str]] = None):
|
||||
"""
|
||||
Async create segment to index
|
||||
:param segment_id:
|
||||
|
Reference in New Issue
Block a user