Created
February 12, 2026 14:43
-
-
Save mypy-play/afd9e4e68abe69277d97eb42f33adbcf 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 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