mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 09:34:23 +01:00
typing extensions is an optional requirement for py>3.10, therefore
TypeVarTuple and Unpack need additional handling see https://docs.python.org/3.9/library/typing.html see #5695
This commit is contained in:
parent
030fd1fcf5
commit
bcae6429a4
1 changed files with 6 additions and 2 deletions
|
|
@ -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__"
|
||||
|
|
|
|||
Loading…
Reference in a new issue