Method
__init__
(self, mapping: Mapping, annotations=None, collection_annotations=None)
Source from the content-addressed store, hash-verified
| 335 | """ |
| 336 | |
| 337 | def __init__(self, mapping: Mapping, annotations=None, collection_annotations=None): |
| 338 | super().__init__( |
| 339 | annotations=annotations, collection_annotations=collection_annotations |
| 340 | ) |
| 341 | if not isinstance(mapping, Mapping): |
| 342 | raise TypeError(f"mapping must be a Mapping. Instead got {type(mapping)}") |
| 343 | self.mapping = mapping |
| 344 | |
| 345 | def __contains__(self, k): |
| 346 | return k in self.mapping |
Callers
nothing calls this directly
Tested by
no test coverage detected