Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update F811 annotations for py 3.7+3.8 #32

Merged
merged 1 commit into from
Oct 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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