from typing import Callable, TypeAlias from lib import pkgcomposer from . import autolink, autopatch, autostrip PreBuild: TypeAlias = Callable[[], None] PostBuild: TypeAlias = Callable[[], None] PostPack: TypeAlias = Callable[[pkgcomposer.PkgComposer], None] pre_build: dict[str, PreBuild] = { "autopatch": autopatch.autopatch, } post_build: dict[str, PostBuild] = {} post_pack: dict[str, PostPack] = { "autolink": autolink.autolink, "autostrip": autostrip.autostrip, }