def provider(): all_providers = ( tuple(def_provider_builders) + self.external_def_providers ) return Transformer.first_of( *(p(provider) for p in all_providers) )
def provider(): aggregate_provider = Transformer.first_of( *(p(provider) for p in def_provider_builders)) return (aggregate_provider if self.external_def_provider is None else (aggregate_provider | self.external_def_provider(provider)))