SourceUnion

SourceUnion#

class SourceUnion(*args, **kwargs)#

Bases: _SourceMix[T_ModSource]

Sources are the union of that obtained by multiple modules.

Pass the different source modules to “combine” to SourceUnion.create() which will return a new module class. As so:

MyUnion = SourceUnion.create([Source1, Source2])

The union module will output all the files found by any of the initial modules, without duplicates, in the order of how the modules were given to create.

_lines()#

Lines to show in DataManager repr (human readable).

Return type:

list[str]

get_source(_warn=True)#

Return source of data.

Not Implemented:

Implement in Module subclass

Parameters:

_warn (bool)

Return type:

list[Any]