HomeElementl

Add exhaustive check for mypy

Description

Add exhaustive check for mypy

Summary:
Ran into this when refactoring PartitionSetDefinition.

This idiom appears in https://hakibenita.com/python-mypy-exhaustive-checking and
https://github.com/python/mypy/issues/5818 - this is a nice to ensure exhaustion
when doing conditionals on enums.

Test Plan: N/A

Reviewers: dgibson, cdecarolis, alangenfeld

Reviewed By: dgibson

Differential Revision: https://dagster.phacility.com/D7642

Details

Provenance
rexledesmaAuthored on Apr 28 2021, 8:14 PM
Reviewer
dgibson
Differential Revision
D7642: Add exhaustive check for mypy
Parents
R1:0f11c3b25cb5: Use route handlers instead of 404s for routing
Branches
Unknown
Tags
Unknown