Skip to content

Commit 55e8e79

Browse files
committed
Removed typealias, worked locally with mypy but does seem to cause
issues with the ci.
1 parent 198dd7d commit 55e8e79

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

beets/logging.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
)
4040
from typing import TYPE_CHECKING, Any, Mapping, TypeVar, overload
4141

42-
from typing_extensions import TypeAlias
43-
4442
__all__ = [
4543
"DEBUG",
4644
"INFO",
@@ -60,12 +58,12 @@
6058
from types import TracebackType
6159

6260
# see https://github.com/python/typeshed/blob/main/stdlib/logging/__init__.pyi
63-
_SysExcInfoType: TypeAlias = (
61+
_SysExcInfoType = (
6462
tuple[type[BaseException], BaseException, TracebackType | None]
6563
| tuple[None, None, None]
6664
)
67-
_ExcInfoType: TypeAlias = None | bool | _SysExcInfoType | BaseException
68-
_ArgsType: TypeAlias = tuple[object, ...] | Mapping[str, object]
65+
_ExcInfoType = None | bool | _SysExcInfoType | BaseException
66+
_ArgsType = tuple[object, ...] | Mapping[str, object]
6967

7068

7169
def _logsafe(val: T) -> str | T:

0 commit comments

Comments
 (0)