Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created May 14, 2024 17:14
Show Gist options
  • Save mypy-play/d553dbf2be77a35601ed40dd5dba9862 to your computer and use it in GitHub Desktop.
Save mypy-play/d553dbf2be77a35601ed40dd5dba9862 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
from enum import Enum
from typing import Self
class E(Enum):
def __new__(cls, arg: int) -> Self: ...
A = "a", "b" # Type error, too many arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment