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

Allow tuples of exceptions in ExceptionCounter #881

Merged

Conversation

jvansanten
Copy link
Contributor

ExceptionCounter.__exit__ kicks down to isinstance, which accepts either a single type or a tuple of types (or in Python 3.10, a UnionType). Update type annotations to reflect this.

`ExceptionCounter.__exit__` kicks down to `isinstance`, which accepts
either a single type or a tuple of types (or in Python 3.10, a
UnionType).  Update type annotations to reflect this.

Signed-off-by: Jakob van Santen <jvansanten@gmail.com>
jvansanten added a commit to AmpelAstro/Ampel-ZTF that referenced this pull request Jan 19, 2023
Copy link
Member

@csmarchbanks csmarchbanks left a comment

Choose a reason for hiding this comment

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

Thanks!

@csmarchbanks csmarchbanks merged commit 4f994ec into prometheus:master Jan 23, 2023
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.

None yet

2 participants