mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 04:55:10 +01:00
Fix typings
This commit is contained in:
parent
95803c5dcc
commit
55bd6e157c
1 changed files with 2 additions and 2 deletions
|
|
@ -388,7 +388,7 @@ def bytestring_path(path: Bytestring) -> bytes:
|
|||
PATH_SEP: bytes = bytestring_path(os.sep)
|
||||
|
||||
|
||||
def displayable_path(path, separator: str = '; ') -> str:
|
||||
def displayable_path(path: bytes, separator: str = '; ') -> str:
|
||||
"""Attempts to decode a bytestring path to a unicode object for the
|
||||
purpose of displaying it to the user. If the `path` argument is a
|
||||
list or a tuple, the elements are joined with `separator`.
|
||||
|
|
@ -407,7 +407,7 @@ def displayable_path(path, separator: str = '; ') -> str:
|
|||
return path.decode('utf-8', 'ignore')
|
||||
|
||||
|
||||
def syspath(path: Bytestring, prefix: bool = True) -> Bytestring:
|
||||
def syspath(path: bytes, prefix: bool = True) -> Bytestring:
|
||||
"""Convert a path for use by the operating system. In particular,
|
||||
paths on Windows must receive a magic prefix and must be converted
|
||||
to Unicode before they are sent to the OS. To disable the magic
|
||||
|
|
|
|||
Loading…
Reference in a new issue