Skip to content

Commit

Permalink
BUGFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Mar 4, 2024
1 parent 04eae68 commit c934c81
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions alist_sync/d_worker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import atexit
import datetime
import logging
Expand All @@ -8,7 +7,6 @@
from pathlib import Path
from queue import Queue, Empty
from typing import Literal, Any, Type
from typing_extensions import Unpack

from pydantic import BaseModel, computed_field, Field
from pymongo.collection import Collection
Expand All @@ -24,8 +22,8 @@
sync_config = create_config()

WorkerType = ["delete", "copy"]
# noinspection PyTypeHints
WorkerTypeModify = Literal[Unpack[WorkerType]]
# noinspection PyTypeHints,PyCompatibility
WorkerTypeModify = Literal[*WorkerType]

WorkerStatus = [
"init",
Expand All @@ -37,8 +35,8 @@
"done",
"failed",
]
# noinspection PyTypeHints
WorkerStatusModify = Literal[Unpack[WorkerTypeModify]]
# noinspection PyTypeHints,PyCompatibility
WorkerStatusModify = Literal[*WorkerTypeModify]

logger = logging.getLogger("alist-sync.worker")

Expand Down

0 comments on commit c934c81

Please sign in to comment.