luigi.freezing module

Internal-only module with immutable data structures.

Please, do not use it outside of Luigi codebase itself.

class luigi.freezing.FrozenOrderedDict(*args, **kwargs)[source]

Bases: Mapping

It is an immutable wrapper around ordered dictionaries that implements the complete collections.Mapping interface. It can be used as a drop-in replacement for dictionaries where immutability and ordering are desired.


Recursively walks Mapping``s and ``list``s and converts them to ``FrozenOrderedDict and tuples, respectively.


Recursively walks FrozenOrderedDict``s and ``tuple``s and converts them to ``dict and list, respectively.