Created
November 15, 2025 08:42
-
-
Save mypy-play/91f2787a889288207d9db4111f21ad66 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
This file contains hidden or 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
| from enum import Enum, auto | |
| class Thing(Enum): | |
| ONE = auto() | |
| def main(foo: Thing) -> None: | |
| print(obj) | |
| match foo: | |
| case Thing.ONE: | |
| pass | |
| obj = object() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment