Created
October 4, 2022 02:11
-
-
Save dogweather/dc6a10037de37c92f463cae139edcb52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Original | |
# | |
error: Argument 1 to "assert_never" has incompatible type "Literal[Color.BLUE]"; | |
expected "NoReturn" | |
# | |
# Refactored | |
# | |
error: Cases within match statement do not exhaustively handle all values | |
Unhandled type: "Literal[Color.BLUE]" | |
If exhaustive handling is not intended, add "case _: pass" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment