Skip to content

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 jvansanten force-pushed the count-multiple-exceptions branch from dea991b to 8a27f80 Compare January 19, 2023 12:19
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.

2 participants