/
niceSOFT
/
python3-hatchling
Обзор
Документация
Войти
/
niceSOFT
/
python3-hatchling
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/hatch/env/collectors/plugin/hooks.py
16 строк
633 B
Philipp A.
fix: take metadata hooks from project (#2351)
23 июл 2026, 04:42
Не верифицирован
23 июл 2026, 04:42
af5339a
Код
Авторство
О чём код?
from __future__ import annotations from typing import TYPE_CHECKING from hatch.env.collectors.custom import CustomEnvironmentCollector from hatch.env.collectors.default import DefaultEnvironmentCollector from hatchling.plugin import hookimpl if TYPE_CHECKING: from hatch.env.collectors.plugin.interface import EnvironmentCollectorInterface @hookimpl def hatch_register_environment_collector() -> list[type[EnvironmentCollectorInterface]]: # CustomEnvironmentCollector fakes its type via `__new__`; it is not a real subclass return [CustomEnvironmentCollector, DefaultEnvironmentCollector] # type: ignore[list-item]