mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
11 lines
230 B
Python
11 lines
230 B
Python
import os
|
|
import sys
|
|
|
|
from typing import Union
|
|
|
|
|
|
if sys.version_info >= (3, 9):
|
|
StrPath = Union[str, os.PathLike[str]]
|
|
else:
|
|
# PathLike is only subscriptable at runtime in 3.9+
|
|
StrPath = Union[str, "os.PathLike[str]"]
|