mirror of
https://github.com/beetbox/beets.git
synced 2025-12-13 03:52:24 +01:00
[util.hidden] use 'typing.Union' instead of '|'
This commit is contained in:
parent
f9b683225b
commit
b51f4cbd91
1 changed files with 2 additions and 1 deletions
|
|
@ -20,9 +20,10 @@ import os
|
|||
import stat
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Union
|
||||
|
||||
|
||||
def is_hidden(path: bytes | Path) -> bool:
|
||||
def is_hidden(path: Union[bytes, Path]) -> bool:
|
||||
"""
|
||||
Determine whether the given path is treated as a 'hidden file' by the OS.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue