30 namespace typehandling {
35 For compatibility with C++, ``)docstring" +
36 className + R"docstring(`` has the following restrictions:
37 - all keys must be )docstring" + keyName +
39 - values must be built-in types or subclasses of `lsst.afw.typehandling.Storable`.
40 Almost any user-defined class in C++ or Python can have
41 `~lsst.afw.typehandling.Storable` as a mixin.
43 As a safety precaution, `~lsst.afw.typehandling.Storable` objects that are
44 added from C++ may be copied when you retrieve them from Python, making it
45 impossible to modify them in-place. This issue does not affect objects that
46 are added from Python, or objects that are always passed by
47 :cpp:class:`shared_ptr` in C++.
std::string declareGenericMapRestrictions(std::string const &className, std::string const &keyName)
A base class for image defects.