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

DM-47395: Improve type annotation for DefineVisitTask.run #493

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

mfisherlevine
Copy link
Contributor

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@@ -635,7 +635,7 @@ def run(
dataIds : `Iterable` [ `dict` or `~lsst.daf.butler.DataCoordinate` ]
Exposure-level data IDs. These must all correspond to the same
instrument, and are expected to be on-sky science exposures.
collections : Any, optional
collections : `Sequence` [ `str` ] or `str` or `None`
Copy link
Member

@timj timj Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you also need to change the typing for _buildVisitRecords which uses Any at the moment? And compute visit regions compute method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to quickly fix the mypy error I'm getting. I take your point, but I'm worried that's going to snowball. I'll give it a quick try though...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I've pushed that and am running local tests & mypy 🤞

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, seems to have gone well - Jenkins running...

@mfisherlevine mfisherlevine merged commit 50b8ad3 into main Nov 5, 2024
6 checks passed
@mfisherlevine mfisherlevine deleted the tickets/DM-47395 branch November 5, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants