Created
September 23, 2025 17:58
-
-
Save mypy-play/eed8c069d307071718ae2692366f2136 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 TypeVar, Generic | |
| class GameNode(Generic['GameNodeType']): | |
| pass | |
| GameNodeType = TypeVar('GameNodeType', bound=GameNode, default=GameNode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment