The value of enums shoulde be inferred if possible #1624
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
Is your feature request related to a problem? Please describe.
I know that enum's value is defined as Any in enum.pyi but it is better if the value type inferred precisely. Also mypy already complains that following code has an error.
Describe the solution you'd like
I don't understand the details but I think this is the mypy's implementation:
python/mypy#6867
The text was updated successfully, but these errors were encountered: