huaxi-backend-master/huaxi/Lib/site-packages/importlib_resources/compat/py38.py
2025-08-01 19:12:19 +08:00

12 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]"]