/
niceSOFT
/
python3-hatchling
Обзор
Документация
Войти
/
niceSOFT
/
python3-hatchling
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
backend/src/hatchling/metadata/plugin/hooks.py
14 строк
397 B
Dimitri Papadopoulos Orfanos
Assorted MyPy improvments (#1663)
17 авг 2024, 17:59
Не верифицирован
17 авг 2024, 17:59
551c26e
Код
Авторство
О чём код?
from __future__ import annotations from typing import TYPE_CHECKING from hatchling.metadata.custom import CustomMetadataHook from hatchling.plugin import hookimpl if TYPE_CHECKING: from hatchling.metadata.plugin.interface import MetadataHookInterface @hookimpl def hatch_register_metadata_hook() -> type[MetadataHookInterface]: return CustomMetadataHook # type: ignore[return-value]