diff --git a/python/lsst/afw/fits/_fits.cc b/python/lsst/afw/fits/_fits.cc index 9554395f30..0228e6d2ab 100644 --- a/python/lsst/afw/fits/_fits.cc +++ b/python/lsst/afw/fits/_fits.cc @@ -283,7 +283,7 @@ void declareFitsModule(lsst::utils::python::WrapperCollection &wrappers) { } // namespace PYBIND11_MODULE(_fits, mod) { lsst::utils::python::WrapperCollection wrappers(mod, "lsst.afw.fits"); - wrappers.addSignatureDependency("lsst.pex.exceptions"); + wrappers.addInheritanceDependency("lsst.pex.exceptions"); wrappers.addSignatureDependency("lsst.daf.base"); // FIXME: after afw.image pybind wrappers are converted //wrappers.addSignatureDependency("lsst.afw.image"); diff --git a/python/lsst/afw/geom/_polygon.cc b/python/lsst/afw/geom/_polygon.cc index 402761392f..78283ca3b5 100644 --- a/python/lsst/afw/geom/_polygon.cc +++ b/python/lsst/afw/geom/_polygon.cc @@ -135,7 +135,7 @@ void declarePolygon(lsst::utils::python::WrapperCollection &wrappers) { } } // namespace void wrapPolygon(lsst::utils::python::WrapperCollection &wrappers) { - wrappers.addSignatureDependency("lsst.pex.exceptions"); + wrappers.addInheritanceDependency("lsst.pex.exceptions"); wrappers.addInheritanceDependency("lsst.afw.typehandling"); wrappers.addSignatureDependency("lsst.afw.table.io"); wrappers.wrapException("SinglePolygonException",