Skip to main content

ProviderCollection

Holds a collection of UserProviders. These can be accessed in Starlark by indexing on a ProviderCallable object.

e.g.

FooInfo = provider(fields=["bar"])
....
collection.get(FooInfo) # None if absent, a FooInfo instance if present

This is the result of all UDR implementation functions

ProviderCollection.get

def ProviderCollection.get(index) -> None | provider