Skip to content

Commit

Permalink
Update F811 annotations for py 3.7+3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
brianv0 committed Sep 24, 2020
1 parent cfc5f51 commit 271efcd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions python/lsst/shapelet/constants/constantsContinued.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
__all__ = []


@continueClass # noqa F811
class BasisTypeEnum:
@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
class BasisTypeEnum: # noqa: F811
# Workaround for broken pickling on Python 2
# Without this fails with: TypeError: lsst.shapelet.constants.BasisTypeEnum.__new__(
# lsst.shapelet.constants.BasisTypeEnum) is not safe, use object.__new__()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__all__ = []


@continueClass # noqa F811
class MultiShapeletFunction:
@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
class MultiShapeletFunction: # noqa: F811
def __reduce__(self):
return (MultiShapeletFunction, (list(self.getComponents()),))
4 changes: 2 additions & 2 deletions python/lsst/shapelet/radialProfile/radialProfileContinued.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__all__ = []


@continueClass # noqa F811
class RadialProfile:
@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
class RadialProfile: # noqa: F811
def evaluate(self, r):
if isinstance(r, np.ndarray):
return self._evaluate(r.ravel()).reshape(r.shape)
Expand Down

0 comments on commit 271efcd

Please sign in to comment.