SourceIntersection

SourceIntersection#

class SourceIntersection(*args, **kwargs)#

Bases: _SourceMix[T_ModSource]

Sources are the intersection of that obtained by multiple modules.

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

MyIntersection = SourceIntersection.create([Source1, Source2])

The intersection module will only output the files found by all of the initial modules.

Parameters:
  • args (Any)

  • kwargs (Any)

get_source(_warn=True)#

Get the intersection of sources from all base module.

Parameters:

_warn (bool)

Return type:

list[Any]