Util
lumi_filter.util
Utility classes for enhanced mapping functionality.
This module provides utility classes that extend standard mapping behavior to support advanced lookup patterns and inheritance-based resolution.
Classes:
Name | Description |
---|---|
ClassHierarchyMapping |
Mapping that supports class hierarchy lookups via MRO |
Features
- Method Resolution Order (MRO) based lookups
- Union type support for field type resolution
- Inheritance-aware field mapping
- Standard MutableMapping interface compliance
ClassHierarchyMapping
Bases: MutableMapping
Mapping that supports class hierarchy lookups via Method Resolution Order.
This mapping class enables lookups that traverse the class hierarchy using Python's Method Resolution Order (MRO), allowing for inheritance-based field type resolution.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mapping
|
dict
|
Initial mapping data |
None
|
Source code in lumi_filter/util.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|