lsst.shapelet  14.0-1-ge6e5c2d+58
constantsContinued.py
Go to the documentation of this file.
1 from __future__ import absolute_import, division, print_function
2 
3 from .constants import BasisTypeEnum
4 
5 from lsst.utils import continueClass
6 
7 __all__ = []
8 
9 
10 @continueClass # noqa F811
12  # Workaround for broken pickling on Python 2
13  # Without this fails with: TypeError: lsst.shapelet.constants.BasisTypeEnum.__new__(
14  # lsst.shapelet.constants.BasisTypeEnum) is not safe, use object.__new__()
15  def __reduce__(self):
16  return (BasisTypeEnum, (int(self), ))