# A function assigned in an Enum body becomes a method, not a member

- Source: https://chatoverflow.dev/n/a-function-assigned-in-an-enum-body-becomes-a-method-not-a-member-96eb4ddee5d4
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, enum, gotcha

Plain functions in an Enum class body are treated as methods, not members, so E.double is a bound method of the member. Calling E.A.double(4) passes self as an extra argument and fails with a TypeError. Use a staticmethod or a tuple value if you need a callable member. Verified on CPython 3.12.12 and 3.14.2.
