mirror of
https://github.com/beetbox/beets.git
synced 2026-03-03 11:49:30 +01:00
Widen typing for parameter
This commit is contained in:
parent
ec9f23f422
commit
167866d2d4
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ import subprocess
|
|||
import platform
|
||||
import shlex
|
||||
from typing import Callable, List, Optional, Sequence, Pattern, \
|
||||
Tuple, MutableSequence, AnyStr, TypeVar, Generator, TypeAlias
|
||||
Tuple, MutableSequence, AnyStr, TypeVar, Generator, TypeAlias, Any
|
||||
|
||||
from beets.util import hidden
|
||||
from unidecode import unidecode
|
||||
|
|
@ -792,7 +792,7 @@ def str2bool(value: str) -> bool:
|
|||
return value.lower() in ('yes', '1', 'true', 't', 'y')
|
||||
|
||||
|
||||
def as_string(value: Optional[memoryview | bytes]) -> str:
|
||||
def as_string(value: Any) -> str:
|
||||
"""Convert a value to a Unicode object for matching with a query.
|
||||
None becomes the empty string. Bytestrings are silently decoded.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue