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

ref(bot): use exhaustiveness checking via NoReturn type #614

Merged
merged 2 commits into from
Feb 13, 2021

Conversation

sbdchd
Copy link
Collaborator

@sbdchd sbdchd commented Feb 13, 2021

NoReturn is Python's never which we can use to help ensure we handle
all cases.

I tried looking for other places where we could use this, but didn't
really find any easy places to add it.

Also we need to use is when comparing enum variants due to mypy's
backwards compatible refinement outlined in: python/mypy#6366

`NoReturn` is Python's `never` which we can use to help ensure we handle
all cases.

I tried looking for other places where we could use this, but didn't
really find any easy places to add it.

Also we need to use `is` when comparing enum variants due to mypy's
backwards compatible refinement outlined in: python/mypy#6366
@sbdchd sbdchd requested a review from chdsbd February 13, 2021 02:11
@sbdchd sbdchd added the automerge Mark PR for auto merge by Kodiak label Feb 13, 2021
@kodiakhq kodiakhq bot merged commit 4d4c2a3 into master Feb 13, 2021
@kodiakhq kodiakhq bot deleted the steve/minor-bot-mypy-thing branch February 13, 2021 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Mark PR for auto merge by Kodiak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants