CollectionInfo

class lsst.daf.butler.CollectionInfo(*, name: str, type: CollectionType, doc: str = '', children: tuple[str, ...] = (), parents: frozenset[str] | None = None, dataset_types: frozenset[str] | None = None)

Bases: BaseModel

Information about a single Butler collection.

Attributes Summary

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

Attributes Documentation

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'children': FieldInfo(annotation=tuple[str, ...], required=False, default=()), 'dataset_types': FieldInfo(annotation=Union[frozenset[str], NoneType], required=False, default=None), 'doc': FieldInfo(annotation=str, required=False, default=''), 'name': FieldInfo(annotation=str, required=True), 'parents': FieldInfo(annotation=Union[frozenset[str], NoneType], required=False, default=None), 'type': FieldInfo(annotation=CollectionType, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.