Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created November 15, 2025 08:39
Show Gist options
  • Select an option

  • Save mypy-play/cf8d254c38917f65b6fe470beb2a0a28 to your computer and use it in GitHub Desktop.

Select an option

Save mypy-play/cf8d254c38917f65b6fe470beb2a0a28 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
from enum import Enum, auto
class Thing(Enum):
ONE = auto()
async def main(foo: Thing) -> None:
print(obj)
match foo:
case Thing.ONE:
pass
case _:
pass
obj = object()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment