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

Add __hash__, __eq__, and __ne__ support for Observer objects #562

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

grant-nations
Copy link
Contributor

Adds the ability to hash and compare Observer objects. This is helpful for adding LRU cache decorators to functions that take an Observer as a parameter.

@bmorris3
Copy link
Contributor

This is handy, thanks!

@bmorris3 bmorris3 merged commit bc8788e into astropy:main Jul 27, 2023
7 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.

2 participants