lsst.afw g1b7e58284d+7dcd958d67
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lsst.afw.typehandling._GenericMap.AutoKeyMeta Class Reference
Inheritance diagram for lsst.afw.typehandling._GenericMap.AutoKeyMeta:
lsst.afw.typehandling._SimpleGenericMap.SimpleGenericMap

Public Member Functions

def __call__ (cls, *args, **kwargs)
 

Detailed Description

A metaclass for abstract mappings whose key type is implied by their
constructor arguments.

This metaclass requires that the mapping have a `dict`-like constructor,
i.e., it takes a mapping or an iterable of key-value pairs as its first
positional parameter.

This class differs from `~lsst.utils.TemplateMeta` only in that the dtype
(or equivalent) constructor keyword is optional. If it is omitted, the
class will attempt to infer it from the first argument.

Definition at line 122 of file _GenericMap.py.

Member Function Documentation

◆ __call__()

def lsst.afw.typehandling._GenericMap.AutoKeyMeta.__call__ (   cls,
args,
**  kwargs 
)

Definition at line 135 of file _GenericMap.py.


The documentation for this class was generated from the following file: