mafw.processor.meta
Metaclass for the Processor framework.
This module defines ProcessorMeta, the metaclass responsible for
finalising every Processor subclass at creation time.
Its duties include:
Ensuring parameter definitions are properly inherited and registered.
Validating any declared filter schema against the allowed model constraints.
Installing the super-call wrappers that guard method execution at runtime.
Invoking
__post_init__()after each instance is constructed.
Added in version 2.3: Extracted from the monolithic processor.py module for improved
maintainability and focused testing.
Classes
|
Metaclass that finalizes Processor subclasses before instantiation. |
- class mafw.processor.meta.ProcessorMeta(name: str, bases: tuple[type, ...], namespace: dict[str, Any])[source]
Bases:
typeMetaclass that finalizes Processor subclasses before instantiation.
Set up new Processor subclasses.
This method first checks the class for well-formed parameter definitions and filter metadata, then runs the super-call wrapping machinery described below. The wrappers are installed at class-creation time so that any later instance will be guarded before it even starts executing.