Coverage for python/lsst/shapelet/constants/constantsContinued.py: 89%
7 statements
« prev ^ index » next coverage.py v7.3.0, created at 2023-08-16 10:39 +0000
« prev ^ index » next coverage.py v7.3.0, created at 2023-08-16 10:39 +0000
1from .._shapeletLib import BasisTypeEnum
3from lsst.utils import continueClass
5__all__ = []
8@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
9class BasisTypeEnum: # noqa: F811
10 # Workaround for broken pickling on Python 2
11 # Without this fails with: TypeError: lsst.shapelet.constants.BasisTypeEnum.__new__(
12 # lsst.shapelet.constants.BasisTypeEnum) is not safe, use object.__new__()
13 def __reduce__(self):
14 return (BasisTypeEnum, (int(self), ))