ml_switcheroo.core.rewriter.normalization ========================================= .. py:module:: ml_switcheroo.core.rewriter.normalization .. autoapi-nested-parse:: Normalization Helpers for AST Rewriting (The Argument Pivot). This module provides the `NormalizationMixin`, a component of the `PivotRewriter` responsible for reshaping function arguments and call structures during translation. Updates: - Supports argument value mapping (Enums) via `arg_values`. - Supports variadic argument packing via `pack_to_tuple`. Classes ------- .. autoapisummary:: ml_switcheroo.core.rewriter.normalization.NormalizationMixin Module Contents --------------- .. py:class:: NormalizationMixin(semantics: ml_switcheroo.semantics.manager.SemanticsManager, config: ml_switcheroo.config.RuntimeConfig) Bases: :py:obj:`ml_switcheroo.core.rewriter.base.BaseRewriter` Mixin class providing argument normalization and operator transformation logic.