Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created February 12, 2026 14:43
Show Gist options
  • Select an option

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

Select an option

Save mypy-play/afd9e4e68abe69277d97eb42f33adbcf to your computer and use it in GitHub Desktop.
Shared via mypy Playground
from typing import ClassVar
from enum import IntEnum
class WithDocReference:
_doc_reference: ClassVar[str]
class MyEnum(WithDocReference, IntEnum):
_doc_reference = "https://www.google.com"
A = 1
B = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment