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

refactor / style: Type hint and style improvements #35

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

aaraney
Copy link
Member

@aaraney aaraney commented Jul 26, 2024

Closes #34

Improve type hints style in a few places.

Nexus._convert_collection_to_tuple is only thing that functionally changed.
If you weren't following the type hints you may now get an AssertionError("unreachable") but IMO the API has not changed so this is not a breaking change.
Likewise, it is now a staticmethod instead of a classmethod.

@aaraney aaraney requested a review from hellkite500 July 26, 2024 15:10
@hellkite500 hellkite500 merged commit d6a6d1a into NOAA-OWP:master Jul 26, 2024
4 checks passed
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.

Question: HydroLocation.geometry can return a tuple, what does that tuple contain and what is its shape?
2 participants