diff --git a/beets/util/pipeline.py b/beets/util/pipeline.py index 8f7be8194..a37728dd9 100644 --- a/beets/util/pipeline.py +++ b/beets/util/pipeline.py @@ -36,9 +36,13 @@ from __future__ import annotations import queue import sys from threading import Lock, Thread -from typing import Callable, Generator +from typing import Callable, Generator, TypeVar + +if sys.version_info >= (3, 11): + from typing import TypeVarTuple, Unpack +else: + from typing_extensions import TypeVar, TypeVarTuple, Unpack -from typing_extensions import TypeVar, TypeVarTuple, Unpack BUBBLE = "__PIPELINE_BUBBLE__" POISON = "__PIPELINE_POISON__"