PaiGram/utils/const/__init__.py
kotoriのねこ 8c8fa8ea99
💄 Format with black 24.x.x
* 💄 Format with black 24.x.x

* 💄 Update black version to 24.x.x in pre-commit check
2024-03-16 09:44:15 +08:00

37 lines
922 B
Python

"""一些常量"""
from functools import WRAPPER_ASSIGNMENTS as _WRAPPER_ASSIGNMENTS
from typing import List
from core.basemodel import RegionEnum
from utils.const._path import *
from utils.const._single import *
from utils.const._url import *
NOT_SET = object()
# noinspection PyTypeChecker
WRAPPER_ASSIGNMENTS: List[str] = list(_WRAPPER_ASSIGNMENTS) + [
"block",
"_catch_targets",
"_handler_datas",
"_conversation_handler_data",
"_error_handler_data",
"_job_data",
]
USER_AGENT: str = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/90.0.4430.72 Safari/537.36"
)
REQUEST_HEADERS: dict = {"User-Agent": USER_AGENT}
REGION_MAP = {
"1": RegionEnum.HYPERION,
"2": RegionEnum.HYPERION,
"5": RegionEnum.HYPERION,
"6": RegionEnum.HOYOLAB,
"7": RegionEnum.HOYOLAB,
"8": RegionEnum.HOYOLAB,
"9": RegionEnum.HOYOLAB,
}