False positive "Method must have at least one argument" with @enum.member
#18720
Labels
bug
mypy got something wrong
topic-enum
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
Bug Report
enum.member
-decorated functions become enum members and do not undergoself
binding, similar to static methods. The repro snippet can be run with python 3.11 and newer to confirm.To Reproduce
playground
Expected Behavior
Green output.
Actual Behavior
Your Environment
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: