Skip to main content

provider_collection type

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

provider_collection.get

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