diff --git a/beets/util/pipeline.py b/beets/util/pipeline.py index 8f7be8194..98a1addce 100644 --- a/beets/util/pipeline.py +++ b/beets/util/pipeline.py @@ -36,9 +36,12 @@ from __future__ import annotations import queue import sys from threading import Lock, Thread -from typing import Callable, Generator +from typing import Callable, Generator, TypeVar -from typing_extensions import TypeVar, TypeVarTuple, Unpack +if sys.version_info >= (3, 11): + from typing import TypeVarTuple, Unpack +else: + from typing_extensions import TypeVarTuple, Unpack BUBBLE = "__PIPELINE_BUBBLE__" POISON = "__PIPELINE_POISON__" diff --git a/docs/guides/main.rst b/docs/guides/main.rst index a933b1333..255484dde 100644 --- a/docs/guides/main.rst +++ b/docs/guides/main.rst @@ -26,7 +26,7 @@ Beets works on Python 3.8 or later. as described below by running: ``apt-get install python-dev python-pip`` -* On **Arch Linux**, `beets is in [community] `_, so just run ``pacman -S +* On **Arch Linux**, `beets is in [extra] `_, so just run ``pacman -S beets``. (There's also a bleeding-edge `dev package `_ in the AUR, which will probably set your computer on fire.) @@ -56,7 +56,7 @@ Beets works on Python 3.8 or later. .. _Debian details: https://tracker.debian.org/pkg/beets .. _Ubuntu details: https://launchpad.net/ubuntu/+source/beets .. _OpenBSD: http://openports.se/audio/beets -.. _Arch community: https://www.archlinux.org/packages/community/any/beets/ +.. _Arch extra: https://archlinux.org/packages/extra/any/beets/ .. _Alpine package: https://pkgs.alpinelinux.org/package/edge/community/x86_64/beets .. _NixOS: https://github.com/NixOS/nixpkgs/tree/master/pkgs/tools/audio/beets .. _MacPorts: https://www.macports.org