//! Register derived enums into a `#[pymodule]`.
//!
//! The only supported registration path is an explicit library-provided
//! helper — either the free [`add_enum`] function or the
//! [`PyModuleExt::add_enum`] extension method. No hidden global registry,
//! no replacement module macro.
use *;
use PyModule;
use cratePyEnum;
/// Register the Python class for `T` onto `module` under `T::SPEC.name`.
/// Extension-method form of [`add_enum`] — `m.add_enum::<T>()?` inside a
/// `#[pymodule]` is the idiomatic call site.