NamedValueAbstractSet¶
-
class
lsst.daf.butler.NamedValueAbstractSet¶ Bases:
collections.abc.Set,typing.GenericAn abstract base class for custom sets whose elements are objects with a
strnameattribute, allowing some dict-like operations and views to be supported.Attributes Summary
namesThe set of names associated with the keys, in the same order ( AbstractSet[str]).Methods Summary
asMapping()Return a mapping view with names as keys. get(key, K_co], default)Return the element with the given name, or defaultif no such element is present.isdisjoint(other)Return True if two sets have a null intersection. Attributes Documentation
Methods Documentation
-
asMapping() → Mapping[str, K_co]¶ Return a mapping view with names as keys.
Returns: - dict :
Mapping A dictionary-like view with
values() == self.
- dict :
-
get(key: Union[str, K_co], default: Optional[Any] = None) → Any¶ Return the element with the given name, or
defaultif no such element is present.
-
isdisjoint(other)¶ Return True if two sets have a null intersection.
-