-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
Description
Bug Report
enum.Enum shouldn't be callable
To Reproduce
import enum
enum.Enum()Expected Behavior
Error about calling enum.Enum. Here's runtime output:
Traceback (most recent call last):
File "/Users/a5rocks/Documents/mypy/repro.py", line 3, in <module>
enum.Enum()
~~~~~~~~~^^
TypeError: EnumType.__call__() missing 1 required positional argument: 'value'
Actual Behavior
No errors.
Your Environment
- Mypy version used:
1.19.0+dev.35e843cc38cedc1bdf87d9937c06d51189ad0e45 - Mypy command-line flags:
--cache-dir /dev/null - Mypy configuration options from
mypy.ini(and other config files): N/A - Python version used: 3.13.7