Created
May 14, 2024 17:14
-
-
Save mypy-play/d553dbf2be77a35601ed40dd5dba9862 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
This file contains 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 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