SourceUnion

On this page

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.

Parameters:
  • args (Any)

  • kwargs (Any)

get_source(_warn=True)#

Get the union of sources from all base module.

Parameters:

_warn (bool)

Return type:

list[Any]